X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=5523fc82158843e8eadd70405fc7ef9041af51e3;hb=2f4b93beb55b35a978d3a9520bdf67ac3abf43fb;hp=9a975361a8a142d49feda0a674a917ec5d11da7c;hpb=1c0419d6b4c94643bfa7bed9a6b435bbdbbae02f;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 9a97536..5523fc8 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -22,61 +22,21 @@

Sondages

-{* Survey::MODE_ALL equals 0. *} -{assign var=SurveyMODE_ALL value=0} +{if $active->total() > 0} - {iterate item=s from=$survey_current} - {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} - - - - {assign var="has_cs" value="true"} - {/if} - {/iterate} - - - -
Sondages en cours
- • - - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - -
- {if !$has_cs}Aucun sondage en cours{/if} - {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} -
- -
- - + {iterate from=$active item=survey} - - - {iterate item=s from=$survey_old} - {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} - - - {assign var="has_os" value="true"} - {/if} {/iterate} - {if !$has_os} - - - - {/if}
- Anciens sondages -
- • - - {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - + + {$survey->title}
Aucun ancien sondage
+{/if} {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}