X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=c7874209dd5904b57bae9efe353bf9e4da81d61b;hb=f43f9263fc772dd9efcaeb62eff129d847ff9e86;hp=b6ea499c9451c3a9de94ed03f23af98a16d590b5;hpb=0b580c50a8568e6927e1914d2408c296a9b30823;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index b6ea499..c787420 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -3,7 +3,6 @@
- {% if not vote.is_transparent %}
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
{% endif %} @@ -15,7 +14,9 @@ {% for choice in choices %} {{ choice.name }} {% endfor %} + {% if 'user' in session %} + {% endif %} @@ -30,7 +31,9 @@ {% else %} {% endif %} {% endfor %} - {% if 'user' in session and user.userid == session.user.id %}{% endif %} + {% if 'user' in session %} + {% if user.userid == session.user.id %}{% endif %} + {% endif %} {% endif %} {% endfor %} @@ -41,11 +44,11 @@ {% if vote.is_multiplechoice %} {% for choice in choices %} - + {% endfor %} {% else %} {% for choice in choices %} - + {% endfor %} {% endif %} @@ -61,7 +64,9 @@ {% for choice in choices %} {{ choice.nb }} {% endfor %} + {% if 'user' in session %} + {% endif %} {% endif %} @@ -70,6 +75,15 @@

Informations

+{% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% else %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% endif %}
Publié par
maethor
Début le
{{ vote.date_begin }}