@import com.gu.contentatom.renderer.utils.GuardianDateFormatter @import com.gu.contentatom.renderer.utils.Implicits._ @(atom: com.gu.contentatom.thrift.Atom , data: com.gu.contentatom.thrift.atom.timeline.TimelineAtom )(implicit conf: com.gu.contentatom.renderer.EmailConfiguration) @fragments.email.html.email(atom){ @fragments.email.html.snippet( atom, className = "timeline", label = data.typeLabel.getOrElse("Timeline"), headline = atom.title.getOrElse("") ){ @for( description <- data.description ) { } @for( item <- data.events ) { @item.body.map { body => } }
@Html(description)
@item.renderFormattedDate(item.date, item.dateFormat) @item.toDate.map { maybeDate => – @item.renderFormattedDate(maybeDate, item.dateFormat) }
@item.title
@Html(body)
} }