projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements based on txm's comments.
[platal.git]
/
templates
/
survey
/
index.tpl
diff --git
a/templates/survey/index.tpl
b/templates/survey/index.tpl
index
6d59f4f
..
3479967
100644
(file)
--- a/
templates/survey/index.tpl
+++ b/
templates/survey/index.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
7
Polytechnique.org *}
+{* Copyright (C) 2003-200
8
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-28,16
+28,9
@@
Sondages en cours
</th>
</tr>
Sondages en cours
</th>
</tr>
- <tr>
- <td>
- {if $survey_current->total() eq 0}
- Aucun sondage en cours
- {/if}
- <a style="display: block; float: right;" href="survey/edit/new">{icon name=page_edit} Proposer un sondage</a></td>
- </tr>
{iterate item=s from=$survey_current}
{if $smarty.session.auth || $s.mode == Survey::MODE_ALL}
{iterate item=s from=$survey_current}
{if $smarty.session.auth || $s.mode == Survey::MODE_ALL}
- <tr class="{cycle values="impair,pair"}">
+ <tr class="{cycle
name=cs_cycle
values="impair,pair"}">
<td class="half">
•
<a href="survey/vote/{$s.id}">
<td class="half">
•
<a href="survey/vote/{$s.id}">
@@
-45,8
+38,15
@@
</a>
</td>
</tr>
</a>
</td>
</tr>
+ {assign var="has_cs" value="true"}
{/if}
{/iterate}
{/if}
{/iterate}
+ <tr class="impair">
+ <td class="half">
+ {if !$has_cs}Aucun sondage en cours{/if}
+ {if $smarty.session.auth}<a style="display: block; float: right;" href="survey/edit/new">{icon name=page_edit} Proposer un sondage</a>{/if}
+ </td>
+ </tr>
</table>
<br />
</table>
<br />
@@
-59,7
+59,7
@@
</tr>
{iterate item=s from=$survey_old}
{if $smarty.session.auth || $s.mode == Survey::MODE_ALL}
</tr>
{iterate item=s from=$survey_old}
{if $smarty.session.auth || $s.mode == Survey::MODE_ALL}
- <tr class="{cycle values="impair,pair"}">
+ <tr class="{cycle
name=os_cycle
values="impair,pair"}">
<td class="half">
•
<a href="survey/result/{$s.id}">
<td class="half">
•
<a href="survey/result/{$s.id}">