From: x2004laborde Date: Tue, 24 Apr 2007 17:45:14 +0000 (+0000) Subject: surveys : doesn't show the 'proposer un sondage' link when not connected X-Git-Tag: xorg/0.9.14~55 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=84192707482ff8b3dc1a0eaa2b362eed37b13921;p=platal.git surveys : doesn't show the 'proposer un sondage' link when not connected git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1735 839d8a87-29fc-0310-9880-83ba4fa771e5 --- 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} - + •