X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=ec96dc9e93f199c7c2ad5c72b9f0f20e545e293c;hb=db143c0fe93e5bf11dc62bc62d3d3ed8b6a88bca;hp=6d59f4fdca8715063d3c9bdd04b2da7edb6311ec;hpb=0f39634734a89aa65f7cf651359c6288702a3eb9;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 6d59f4f..ec96dc9 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -28,16 +28,9 @@ Sondages en cours - - - {if $survey_current->total() eq 0} - Aucun sondage en cours - {/if} - {icon name=page_edit} Proposer un sondage - {iterate item=s from=$survey_current} {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - + • @@ -45,8 +38,15 @@ + {assign var="has_cs" value="true"} {/if} {/iterate} + + + {if !$has_cs}Aucun sondage en cours{/if} + {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} + +
@@ -59,7 +59,7 @@ {iterate item=s from=$survey_old} {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - + •