Standings page ok
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#end
|
||||
<div class="tab-content" id="pairing">
|
||||
<div id="pairing-content">
|
||||
<div id="pairing-round" class="active-round"-box>
|
||||
<div id="pairing-round" class="active-round-box">
|
||||
Pairings for round
|
||||
<button class="ui floating choose-round prev-round button">«</button>
|
||||
<span class="active-round">$round</span>
|
||||
@@ -42,7 +42,7 @@
|
||||
#foreach($game in $games)
|
||||
#set($white = $pmap[$game.w])
|
||||
#set($black = $pmap[$game.b])
|
||||
<div class="listitem game" data-id="$game.id"><span class="table">#$game.t</span><span class="white">#if($white)$white.name $white.firstname #rank($white.rank)#{else}BIP#end</span><span> </span><span class="black">#if($black)$black.name $black.firstname #rank($black.rank)#{else}BIP#end</span><span class="handicap">$game.h</span></div>
|
||||
<div class="listitem game" data-id="$game.id"><span class="table">#$game.t</span><span class="white">#if($white)$white.name $white.firstname #rank($white.rank)#{else}BIP#end</span><span> </span><span class="black">#if($black)$black.name $black.firstname #rank($black.rank)#{else}BIP#end</span>#if($game.h)<span class="handicap">h$game.h</span>#end</div>
|
||||
#end
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -5,13 +5,13 @@
|
||||
#set($pmap = $utils.toMap($parts))
|
||||
<table id="players" class="ui celled selectable striped table">
|
||||
<thead>
|
||||
<th>name</th>
|
||||
<th>first name</th>
|
||||
<th>country</th>
|
||||
<th>club</th>
|
||||
<th>rank</th>
|
||||
<th>rating</th>
|
||||
<th>participation</th>
|
||||
<th>Name</th>
|
||||
<th>First name</th>
|
||||
<th>Country</th>
|
||||
<th>Club</th>
|
||||
<th>Rank</th>
|
||||
<th>Rating</th>
|
||||
<th>Participation</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
#foreach($part in $parts)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#foreach($placement in $tour.pairing.placement)
|
||||
<div class="criterium field">
|
||||
#set($num = $foreach.index + 1)
|
||||
<label>Criterium #$num</label>
|
||||
<label>Crit #$num</label>
|
||||
#placement($num $placement)
|
||||
</div>
|
||||
#end
|
||||
@@ -45,8 +45,40 @@
|
||||
</script>
|
||||
#set($standings = [])
|
||||
#end
|
||||
#foreach($line in $standings)
|
||||
<div class="standings-line">$line</div>
|
||||
<table id="standings-table" class="ui striped table">
|
||||
<thead>
|
||||
<th>Num</th>
|
||||
<th>Plc</th>
|
||||
<th>Name</th>
|
||||
<th>Rank</th>
|
||||
<th>Cntry</th>
|
||||
<th>Nbw</th>
|
||||
#foreach($r in [1..$round])
|
||||
<th>R$r</th>
|
||||
#end
|
||||
#foreach($crit in $tour.pairing.placement)
|
||||
<th>$crit</th>
|
||||
#end
|
||||
</thead>
|
||||
<tbody>
|
||||
#foreach($part in $standings)
|
||||
<tr>
|
||||
<td>$part.num</td>
|
||||
<td>$part.place</td>
|
||||
<td>$part.name $part.firstname</td>
|
||||
<td>$part.rank</td>
|
||||
<td>$part.country</td>
|
||||
<td>$part.NBW</td>
|
||||
#set($mx = $round - 1)
|
||||
#foreach($r in [0..$mx])
|
||||
<td class="nobreak">$part.results[$r]</td>
|
||||
#end
|
||||
#foreach($crit in $tour.pairing.placement)
|
||||
<td>$number.format('0.#', $part[$crit])</td>
|
||||
#end
|
||||
</tr>
|
||||
#end
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user