#set($roundPairing = $api.get("tour/${params.id}/pair/$round")) #if($roundPairing.error)
#set($pairables = []) #set($games = []) #set($unpairables = []) #else #set($pairables = $roundPairing.pairables) #set($games = $roundPairing.games) #set($unpairables = $roundPairing.unpairables) #end
Pairings for round
$round
( $pairables.size() pairable, $games.size() games )
#if($tour.tablesExclusion && $round <= $tour.tablesExclusion.size()) #set($tablesExclusion = $!tour.tablesExclusion[$round - 1]) #else #set($tablesExclusion = '') #end Exclude table numbers:
#foreach($p in $pairables) #set($part = $pmap[$p])
$part.name#if($part.firstname) $part.firstname#end#rank($part.rank)#if($part.country) $part.country#end
#end
#foreach($p in $unpairables) #set($part = $pmap[$p])
$part.name#if($part.firstname) $part.firstname#end#rank($part.rank)#if($part.country) $part.country#end
#end
#foreach($game in $games) #set($white = $pmap[$game.w]) #set($black = $pmap[$game.b])
${game.t}.
#if($white)$white.name#if($white.firstname) $white.firstname#end#{else}BIP#end
#if($white)#rank($white.rank)#end / #if($black)#rank($black.rank)#end
#if($black)$black.name#if($black.firstname) $black.firstname#end#{else}BIP#end
#if($game.h)h$game.h#{else} #end
#end
result sheets
#if($games.size())

Tbl | White | Black | Hd
--- | --- | --- | ---
#foreach($game in $games) #set($white = $pmap[$game.w]) #set($black = $pmap[$game.b])
${game.t} | #if($white)${white.name} ${white.firstname} (#rank($white.rank), $white.country $white.club)#{else}BIP#end | #if($black)${black.name} ${black.firstname} (#rank($black.rank), $black.country $black.club)#{else}BIP#end | ${game.h}
#end

Tbl #
White
Black
Hd
Pairable for round $round?
## For dynamic texts to be translated, they must be somewhere in the html source. ## TODO - gather all "text only" nodes like this somewhere
Games of