X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fgrades.js.tpl;h=bc4c193c5d8cf4591df490b4a62232f7da25912e;hb=fbf66f5e730def1c20bf36004f02f46c2c96bcfc;hp=ab575cb84cdc200d6e069553576b303cd69e43cb;hpb=ae163e7a83670527fcc67e38b5bbc0902b7fe119;p=platal.git diff --git a/templates/profile/grades.js.tpl b/templates/profile/grades.js.tpl index ab575cb..bc4c193 100644 --- a/templates/profile/grades.js.tpl +++ b/templates/profile/grades.js.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,6 +22,7 @@ subgrades = new Array(); names = new Array(); +multiple = new Array(); {foreach from=$medal_list key=type item=list} {foreach from=$list item=m} names[{$m.id}] = "{$m.text|regex_replace:"/\r?\n/":"\\n"}"; @@ -31,6 +32,9 @@ names = new Array(); subgrades[{$m.id}][{$g.gid-1}] = [{$g.gid},"{$g.text|regex_replace:"/\r?\n/":"\\n"}"]; {/foreach} {/if} + {if $m.type != 'ordre'} + multiple[{$m.id}] = true; + {/if} {/foreach} {/foreach}