@(model: MatchesPage, isLive: String = "false")(implicit request: RequestHeader)
@model.days.map{ day =>
@if(isLive != "live") {
@day.date.toString("EEEE d MMMM yyyy")
}
@day.competitions.zipWithRowInfo.map{ case (comp, row) =>
-
@* sort matches by start time, then alphabet *@
@comp.matches.map{ theMatch =>
@fragments.renderMatch(theMatch)
}
@* Shows the live blog (if there is one) after the first competition *@
@if(row.isFirst){
@model.blog.map{ blog =>
@fragments.trails.thumbnail(blog, row.rowNum)
}
}
}
}
@if(!model.days) {
There are no matches being played today. Why not check out upcoming fixtures or previous results?
}