X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=971dd4e7c035620a50fac1babac1f464844faadb;hb=e85e121558a37e06cbf2099843588a6e5e5c267a;hp=d0db912a6fa966984ee802bab68f55cfaa187e0d;hpb=be7ba6fb7e4de1c37b6135a224735087f7c28796;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index d0db912..971dd4e 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,20 +26,20 @@

{else} - {section name=trombi loop=$set start=1} - {if $smarty.section.trombi.iteration % 3 == 1} + {section name=trombi loop=$set start=0} + {if $smarty.section.trombi.index % 3 == 1} - {elseif ($smarty.section.trombi.iteration % 3 == 0) && ($smarty.section.trombi.last)} + {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)}
- -  [ PHOTO ] + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} {icon name=wrench title="[admin]"} {/if} - -  [ PHOTO ] + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} {icon name=wrench title="[admin]"} @@ -47,8 +47,8 @@ {if $set[trombi.index_next]} - -  [ PHOTO ] + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} {icon name=wrench title="[admin]"} @@ -58,28 +58,28 @@
- + {$set[trombi.index_prev].prenom} {$set[trombi.index_prev].nom}{if $trombi_with_promo} ({$set[trombi.index_prev].promo}){/if} - + {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if} {if $set[trombi.index_next]} - + {$set[trombi.index_next].prenom} {$set[trombi.index_next].nom}{if $trombi_with_promo} ({$set[trombi.index_next].promo}){/if} {/if}
- -  [ PHOTO ] + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} {icon name=wrench title="[admin]"} @@ -89,7 +89,7 @@
- + {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if}