Back to Frontend

GroupTable.Scala

sport/app/rugby/views/fragments/groupTable.scala.html

latest728 B
Original Source

@import rugby.model.{GroupTable, Match} @import views.support.RenderClasses @(theMatch: Match, group: Option[GroupTable]) @if(group.isDefined) {

true, "table--league-table" -> true, "table--football" -> true, "table--striped" -> false, "table--responsive-font" -> false ))"> | Pos | Team | P | W | D | L | PD | Pts | | --- | --- | --- | --- | --- | --- | --- | --- | @group.get.teams.zipWithIndex.map { case (team, index) => | false, "table-row--divider" -> (index == 2) ))"> @team.rank | @team.name | @team.played | @team.won | @team.drawn | @team.lost | @team.pointsdiff | @team.points | } @group.get.name

}