Back to Frontend

GroupTableEmbed.Scala

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

latest700 B
Original Source

@import implicits.Football._ @import pa._ @(competition: model.Competition, groupStage: _root_.football.model.Groups, groupId: List[Int])(implicit request: RequestHeader, context: model.ApplicationContext) @footballGroup(round: Round, leagueTableEntries: Seq[LeagueTableEntry], hideAtMobile: Boolean) = {

@round.name.map { name => @football.views.html.tablesList.tableView(competition, model.Group(round, leagueTableEntries), heading = round.name, headingLink = groupTag(competition.id, round), striped = true, withCrests = true ) } } @groupStage.groupTables.zipWithIndex.map { case (groupTable, index) => @footballGroup(groupTable._1, groupTable._2, !groupId.contains(index + 1)) }