Back to Frontend

MatchNav.Scala

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

latest602 B
Original Source

@import common.LinkTo @import football.controllers.MatchNav @import football.model.FootballMatchTrail @(component: MatchNav)(implicit request: RequestHeader) @report(trail: FootballMatchTrail, text: String) = { @if(component.currentPage.exists(_.url == trail.url)){

  • @text } else { - @text } } @if(component.hasReports){ @component.matchReport.map{ matchReport => @report(matchReport, "Report") } @component.minByMin.map{ minByMin => @report(minByMin, "Min-by-min") } @component.preview.map{ preview => @report(preview, "Preview") } @report(component.stats, "Stats") }