Do not show last profile modification for unregistered users.
[platal.git] / templates / profile / grades.js.tpl
index ab575cb..bc4c193 100644 (file)
@@ -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}