Back to Frontend

Choose match

admin/app/views/football/fronts/matchesList.scala.html

latest566 B
Original Source

@import java.time.format.DateTimeFormatter @(liveMatches: List[pa.LiveMatch], fixtures: List[pa.Fixture], results: List[pa.Result])(implicit context: model.ApplicationContext, request: RequestHeader) @views.html.football.main("Matches") {

Choose match

Matches

@(liveMatches ++ fixtures ++ results) match { case Nil => {

No matches found

} case matches => { @for(fMatch <- matches) { @fMatch.date.format(DateTimeFormatter.ofPattern("E dd MMMM HH:mm")) @fMatch.homeTeam.name v @fMatch.awayTeam.name } } } }