#macro(placement $i, $p) #end
Standings after round $round
#foreach($placement in $tour.pairing.placement)
#set($num = $foreach.index + 1) #placement($num $placement)
#end
#set($standings = $api.get("tour/${params.id}/standings/$round")) #if($standings.isObject() && ($standings.error || $standings.message)) #if($standings.error) #set($error = $standings.error) #else #set($error = $standings.message) #end #set($standings = []) #end #set($smap = {}) #foreach($part in $standings) #set($smap[$part.num] = $part) #end #foreach($r in [1..$round]) #end #set($criteres = []) #foreach($crit in $tour.pairing.placement) #set($junk = $criteres.add($crit)) #end #if($criteres[0] == 'SCOREX') #set($junk = $criteres.add(1, 'MMS')) #end #foreach($crit in $criteres) #end #foreach($part in $standings) #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]) #else #set($opponent = false) #end #if($rst.contains('+')) #set($rst = "$rst") #elseif($rst.contains('-')) #set($rst = "$rst") #end #end #foreach($crit in $criteres) #set($value = "$number.format('0.#', $part[$crit])") #end #end
Num Plc Name Rank Ctr NbwR$r$crit
$part.num $part.place $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$value.replace('.5', '½')
#if(!$tour.frozen && $round == $tour.rounds) #end