X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=9a975361a8a142d49feda0a674a917ec5d11da7c;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=9c65e5ba6d49581ecbab039bae323d9dadac8c03;hpb=0b78af4727f2a6495583641cdecd319a8cb7ed92;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 9c65e5b..9a97536 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,6 +22,8 @@

Sondages

+{* Survey::MODE_ALL equals 0. *} +{assign var=SurveyMODE_ALL value=0} {iterate item=s from=$survey_current} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} + - {assign var="has_cs" value="true"} - {/if} + {assign var="has_cs" value="true"} + {/if} {/iterate} - {if !$has_cs} - - + + - {/if}
@@ -29,8 +31,8 @@
@@ -38,14 +40,15 @@
Aucun sondage en cours
+ {if !$has_cs}Aucun sondage en cours{/if} + {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} +

@@ -57,8 +60,8 @@ {iterate item=s from=$survey_old} - {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} - + {if $smarty.session.auth || $s.mode == $SurveyMODE_ALL} + • @@ -76,6 +79,4 @@ {/if} -Proposer un sondage - {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}