X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=e3ecbfcab75a8c267f67bbabbfddf1d348d522cc;hb=f4d357e37e0b186c35ff0958fdb0ffee5d17903e;hp=86b020dab1107a8283645ab91b721f208f4ae023;hpb=df5ece768e1f6197ca618c89490563e0420fce9d;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index 86b020d..e3ecbfc 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -2,7 +2,7 @@ {% block body %}
- + {% if not vote.is_transparent %}
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
{% endif %} @@ -14,13 +14,15 @@ {% for choice in choices %} {{ choice.name }} {% endfor %} + {% if 'user' in session %} + {% endif %} {% for user in users %} - {% if vote.is_transparent or user.userid == session.user.id %} + {% if vote.is_transparent or (session.user and user.userid == session.user.id )%} {% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }} {% for choice in choices %} @@ -29,7 +31,24 @@ {% 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 %} @@ -40,11 +59,11 @@ {% if vote.is_multiplechoice %} {% for choice in choices %} - + {% endfor %} {% else %} {% for choice in choices %} - + {% endfor %} {% endif %} @@ -60,7 +79,9 @@ {% for choice in choices %} {{ choice.nb }} {% endfor %} + {% if 'user' in session %} + {% endif %} {% endif %} @@ -69,26 +90,34 @@

Informations

-Avancement : {{ vote.nb_votes }} / {{ vote.max_votes }} +{% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% else %}
-
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+{% endif %}
-
Publié par
maethor +
Publié par
{{ vote.author }}
Début le
{{ vote.date_begin }}
Deadline le
{{ vote.date_end }}
Groupe
{{ vote.groupname }}
Catégorie
{{ vote.category }}
+ {% if vote.description %}
Description :
{{ vote.description }} + {% endif %} + {% if attachments %}
Documents :
- + {% endif %}