Back to Frontend

@{homeTeam.name} @{homeTeam.score} - @{awayTeam.score} @{awayTeam.name}

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

latest821 B
Original Source

@import model.Page @import rugby.model.Match @import rugby.model.Status.{Result, FirstHalf, HalfTime, SecondHalf} @import views.support.RenderClasses @import conf.Configuration @(page: Page, theMatch: Match)(implicit request: RequestHeader) @defining((theMatch.homeTeam, theMatch.awayTeam)){ case (homeTeam, awayTeam) =>

true, "match-summary--fixture" -> theMatch.isFixture, "match-summary--responsive" -> true ))" data-match-id="@theMatch.id" > @if(theMatch.isLive || theMatch.status == Result){

@{homeTeam.name} @{homeTeam.score} - @{awayTeam.score} @{awayTeam.name}

}else{

@{homeTeam.name} v @{awayTeam.name}

}

@{homeTeam.name}

@if(theMatch.isLive || theMatch.status == Result){ @homeTeam.score }

@{awayTeam.name}

@if(theMatch.isLive || theMatch.status == Result){ @awayTeam.score }

}