From 84192707482ff8b3dc1a0eaa2b362eed37b13921 Mon Sep 17 00:00:00 2001 From: x2004laborde Date: Tue, 24 Apr 2007 17:45:14 +0000 Subject: [PATCH] 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 --- templates/survey/index.tpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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} - + • -- 2.1.4