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 @@ -65,19 +69,23 @@ - + #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 - + #end #foreach($crit in $tour.pairing.placement)
$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)$rst$rst$number.format('0.#', $part[$crit])