X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=34799675a01571cc781456b66f73dd4295e28032;hb=f0eb8c993efa6dc5be13e5b1cd8521f2cd9e44bd;hp=b838a678d63c607fe8d0b4ad15e775996053047f;hpb=c144f2e51e27431ae770661216906997c5dbd725;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index b838a67..3479967 100644 --- a/templates/survey/index.tpl +++ b/templates/survey/index.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -29,21 +29,24 @@ {iterate item=s from=$survey_current} - + {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} + • - - {$s.title} ({$s.end|date_format:"%x"}) + + {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - {assign var="has_cs" value="true"} - {/iterate} - {if !$has_cs} - - Aucun sondage en cours - + {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} + +
@@ -55,15 +58,17 @@ {iterate item=s from=$survey_old} - + {if $smarty.session.auth || $s.mode == Survey::MODE_ALL} + • - - {$s.title} ({$s.end|date_format:"%x"}) + + {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] - {assign var="has_os" value="true"} + {assign var="has_os" value="true"} + {/if} {/iterate} {if !$has_os} @@ -72,6 +77,4 @@ {/if} -Proposer un sondage - -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}