Polytechnique.net - Minor correction
authorx2004lefloch <x2004lefloch@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 29 Jun 2007 11:51:34 +0000 (11:51 +0000)
committerx2004lefloch <x2004lefloch@839d8a87-29fc-0310-9880-83ba4fa771e5>
Fri, 29 Jun 2007 11:51:34 +0000 (11:51 +0000)
Correct color of promotions on the list of promotions page. Choosing color is no longer based on the column in the table, but correctly uses the promotion's year.

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1871 839d8a87-29fc-0310-9880-83ba4fa771e5

templates/xnet/groupes.tpl

index 453a6dc..5b9198c 100644 (file)
@@ -48,7 +48,7 @@
         {if $doms || $i is even}
         <tr>
         {/if}
-          <td class="oval{if $doms}2{/if} {if $cat eq promotions}{if $i is odd}jone{else}rouje{/if}{/if}">
+          <td class="oval{if $doms}2{/if} {if $cat eq promotions}{if $g.diminutif is odd}jone{else}rouje{/if}{/if}">
             <a href="{$g.diminutif}/" {if $g.site}class="has_site"{/if}>{$g.nom}</a>
           </td>
         {if !$doms && $i is even && $smarty.foreach.all.last}<td></td>{/if}