X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsurvey%2Findex.tpl;h=34799675a01571cc781456b66f73dd4295e28032;hb=6337709ae1d9f27bd6493cbe793e1e06b4d71de8;hp=2d4890f328f0484424047d2114cf24a95067d6a0;hpb=8b0fa81ef71d263c267321d9f5e2cc374b6ffd77;p=platal.git
diff --git a/templates/survey/index.tpl b/templates/survey/index.tpl
index 2d4890f..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 ts=8 enc=utf-8: *}