Back to Frontend

SpiderRoundEmbed.Scala

sport/app/football/views/wallchart/spiderRoundEmbed.scala.html

latest871 B
Original Source

@import pa.Round @import views.support.package.Seq2zipWithRowInfo @(page: model.Page, competition: model.Competition, competitionStage: football.model.KnockoutSpider, round: Round, next: Option[pa.FootballMatch])(implicit request: RequestHeader, context: model.ApplicationContext) @knockoutList(competition: model.Competition, knockoutStage: football.model.KnockoutSpider, rounds: Round, hasSpider: Boolean) = {

@round.name.map { name =>

  • @{ knockoutStage.matchesList(competition, round).matchesGroupedByDateAndCompetition.zipWithRowInfo.map { case ((date, competitionMatches), info) => competitionMatches.map { case (competition, matches) => football.views.html.matchList.matchesList(matches, competition, date, heading = if(info.isFirst) Option(("Fixtures and results", None)) else None ) } } }

} } @knockoutList(competition, competitionStage, round, true)