Add MMS column (code cleanup)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#set($pmap = $utils.toMap($teams))
|
#set($pmap = $utils.toMap($teams))
|
||||||
#end
|
#end
|
||||||
|
|
||||||
## CB TODO - why limit to INDIVIDUAL here?
|
## Team players do not have an individual MMS
|
||||||
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
|
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
|
||||||
#set($mmbase = $api.get("tour/${params.id}/standings/0"))
|
#set($mmbase = $api.get("tour/${params.id}/standings/0"))
|
||||||
#if($mmbase.isObject() && ($mmbase.error || $mmbase.message))
|
#if($mmbase.isObject() && ($mmbase.error || $mmbase.message))
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<th>Rank</th>
|
<th>Rank</th>
|
||||||
## TableSort bug which inverts specified sort...
|
## TableSort bug which inverts specified sort...
|
||||||
<th data-sort-default="1" aria-sort="ascending">Rating</th>
|
<th data-sort-default="1" aria-sort="ascending">Rating</th>
|
||||||
#if($tour.pairing.type == 'MAC_MAHON')
|
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
|
||||||
<th>MMS</th>
|
<th>MMS</th>
|
||||||
#end
|
#end
|
||||||
<th>Participation</th>
|
<th>Participation</th>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
## display MMS correction on the screen, but not when printed
|
## display MMS correction on the screen, but not when printed
|
||||||
<td data-sort="$part.rank">#rank($part.rank)#if($part.mmsCorrection)<span class="noprint"> (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)</span>#end</td>
|
<td data-sort="$part.rank">#rank($part.rank)#if($part.mmsCorrection)<span class="noprint"> (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)</span>#end</td>
|
||||||
<td>$part.rating</td>
|
<td>$part.rating</td>
|
||||||
#if($tour.pairing.type == 'MAC_MAHON')
|
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
|
||||||
<td>$mmsPlayersMap[$part.id]</td>
|
<td>$mmsPlayersMap[$part.id]</td>
|
||||||
#end
|
#end
|
||||||
<td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end">
|
<td class="participating" data-sort="#if($part.skip)$part.skip.size()/part.skip#{else}0#end">
|
||||||
|
Reference in New Issue
Block a user