Back to Frontend

Profile.Scala

common/app/views/fragments/atoms/snippets/profile.scala.html

latest584 B
Original Source

@(profile: model.content.ProfileAtom)(implicit request: RequestHeader) @import views.html.fragments.image @fragments.atoms.snippet( className = "profile", label = profile.data.typeLabel.getOrElse("Profile"), headline = profile.atom.title.getOrElse(""), profile.id ){ @for(img <- profile.image ) {

@image( picture = img, classes = Nil, imageAltText = "Profile", isImmersiveMainMedia = true ) } @for(item <- profile.data.items) { @item.title.map { t => @t } @Html(item.body) } @profile.credit.map { credit => @fragments.inlineSvg("information", "icon") @credit } }