@(theMatch: FootballMatch) @import implicits.Football._ @cleanScorers(teamScorers: Option[String]) = { @teamScorers.map{ scorers => @scorers.replace("(", "").replace(")", "").replace(",", ", ") }.getOrElse(Html(" ")) } @defining((theMatch.homeTeam, theMatch.awayTeam)){ case (homeTeam, awayTeam) => @if(theMatch.isLive || theMatch.isResult){

@homeTeam.name @homeTeam.score

@if(homeTeam.hasScored){

@cleanScorers(homeTeam.scorers)

}

@awayTeam.name @awayTeam.score

@if(awayTeam.hasScored){

@cleanScorers(awayTeam.scorers)

} } else {

@homeTeam.name v @awayTeam.name

} @if(theMatch.homeTeam.aggregateScore){

(agg. @theMatch.homeTeam.aggregateScore-@theMatch.awayTeam.aggregateScore)

} @theMatch.comments.map{ comments =>
@comments.replace("(", "").replace(")", "")
} }