Back to Frontend

TeamForm.Scala

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

latest492 B
Original Source

@import model.CompetitionDisplayHelpers.cleanTeamName @(teamId: String, competition: model.Competition)

@competition.teamResults(teamId).takeRight(5).map { result => @if(result.won) { Won @[email protected] against @cleanTeamName(result.foe.name) } @if(result.drew) { Drew @[email protected] with @cleanTeamName(result.foe.name) } @if(result.lost) { Lost @[email protected] to @cleanTeamName(result.foe.name) } }