@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.ArticleConfiguration) @fragments.atoms.html.snippet( atom.id, className = "timeline", label = data.typeLabel.getOrElse("Timeline"), headline = atom.title.getOrElse("") ){ @for(description <- data.description) {
@Html(description)
} @for(item <- data.events) {
@item.toDate.map { maybeDate => – }
@item.title
@item.body.map { body => @Html(body) }
} }