Standings page ok
This commit is contained in:
@@ -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