X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=29aa2920796f8b37d84a3cfd568905683731c6dc;hb=12ce19efb0f31da0db58f6a5ce4c27bb318097df;hp=2d4890f328f0484424047d2114cf24a95067d6a0;hpb=8b0fa81ef71d263c267321d9f5e2cc374b6ffd77;p=platal.git diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl index 2d4890f..29aa292 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 *} @@ -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"} + {assign var="has_cs" value="true"} + {/if} {/iterate} - {if !$has_cs} - - Aucun sondage en cours + + + {if !$has_cs}Aucun sondage en cours{/if} + {if $smarty.session.auth}{icon name=page_edit} Proposer un sondage{/if} + - {/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 ts=8 enc=utf-8: *}