Back to Frontend

MatchNav.Scala

sport/app/rugby/views/fragments/matchNav.scala.html

latest424 B
Original Source

@import common.LinkTo @import model.ContentType @import rugby.feed.MatchNavigation @(matchNav: MatchNavigation, currentPage: Option[String])(implicit request: RequestHeader) @tab(content: ContentType, text: String) = { @if(currentPage.exists( _.endsWith(content.metadata.id))) {

  • @text } else { - @text } } @tab(matchNav.matchReport, "Report") @tab(matchNav.minByMin, "Min-by-min")