Back to Frontend

Most viewed

onward/app/views/mostPopular.scala.html

latest543 B
Original Source

Most viewed

@popular.map{ section =>

Most viewed @Html(section.heading)

@section.trails.zipWithRowInfo.map{ case (trail, info) => - @fragments.inlineSvg(s"number-${info.rowNum}", "numbers") @title(FaciaCardHeader.fromTrail(trail, None), 2, 2, "headline-list__body", isAction = trail.isActionCard) @trail.properties.maybeContent.map { content => @if(content.tags.tags.exists(_.id == "tone/news") || content.tags.tags.exists(_.id == "tone/comment")) { @fragments.contentAgeNotice(ContentOldAgeDescriber(content)) } }

} }