diff --git a/view-webapp/src/main/webapp/tour-standings.inc.html b/view-webapp/src/main/webapp/tour-standings.inc.html index a260640..af5daf3 100644 --- a/view-webapp/src/main/webapp/tour-standings.inc.html +++ b/view-webapp/src/main/webapp/tour-standings.inc.html @@ -44,6 +44,10 @@ }); #set($standings = []) +#end +#set($smap = {}) +#foreach($part in $standings) + #set($smap[$part.num] = $part) #end
$part.num | $part.place | -$part.name#if($part.firstname) $part.firstname#end | +$esc.html($part.name)#if($part.firstname) $esc.html($part.firstname)#end | #rank($part.rank) | #if($part.country)$part.country#end | $number.format('0.#', $part.NBW) | #set($mx = $round - 1) #foreach($r in [0..$mx]) #set($rst = $part.results[$r]) + #set($opp_num = $math.toLong($rst)) + #if($opp_num) + #set($opponent = $!smap[$opp_num]) + #end #if($rst.contains('+')) #set($rst = "$rst") #elseif($rst.contains('-')) #set($rst = "$rst") #end -$rst | +$rst | #end #foreach($crit in $tour.pairing.placement)$number.format('0.#', $part[$crit]) |