From e89024c26a7f25e5ab1a103649229565cd41e8d9 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sun, 11 Aug 2024 16:54:19 +0200 Subject: [PATCH] Add MMS column (code cleanup) --- view-webapp/src/main/webapp/tour-registration.inc.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view-webapp/src/main/webapp/tour-registration.inc.html b/view-webapp/src/main/webapp/tour-registration.inc.html index 6b265ad..131e840 100644 --- a/view-webapp/src/main/webapp/tour-registration.inc.html +++ b/view-webapp/src/main/webapp/tour-registration.inc.html @@ -6,7 +6,7 @@ #set($pmap = $utils.toMap($teams)) #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') #set($mmbase = $api.get("tour/${params.id}/standings/0")) #if($mmbase.isObject() && ($mmbase.error || $mmbase.message)) @@ -61,7 +61,7 @@ Rank ## TableSort bug which inverts specified sort... Rating -#if($tour.pairing.type == 'MAC_MAHON') +#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON') MMS #end Participation @@ -85,7 +85,7 @@ ## display MMS correction on the screen, but not when printed #rank($part.rank)#if($part.mmsCorrection) (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)#end $part.rating -#if($tour.pairing.type == 'MAC_MAHON') +#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON') $mmsPlayersMap[$part.id] #end