@(atom: com.gu.contentatom.thrift.Atom , data: com.gu.contentatom.thrift.atom.guide.GuideAtom )(implicit conf: com.gu.contentatom.renderer.EmailConfiguration) @fragments.email.html.email(atom){ @fragments.email.html.snippet( atom, className = "guide", label = data.typeLabel.getOrElse("Quick guide"), headline = atom.title.getOrElse("") ){ @for( img <- data.guideImage; asset <- img.master; credit <- asset.credit ) { }
@for( img <- data.guideImage ) { @fragments.atoms.html.snippetImage(img) } @for( item <- data.items ) {
@item.title.map { t =>
@t
} @Html(item.body)
}
@credit
} }