X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvotes.html;h=616e3b33c1d59a25c7f5f25d3658022e951d6d35;hb=3c19321cfaca486ce5a3b7c68a58e9c1dfceefa2;hp=88ffee557fa647a617cf62795ae4b93f013389fe;hpb=df5ece768e1f6197ca618c89490563e0420fce9d;p=cavote.git diff --git a/templates/votes.html b/templates/votes.html index 88ffee5..616e3b3 100644 --- a/templates/votes.html +++ b/templates/votes.html @@ -4,12 +4,22 @@ Liste des votes {% endblock %} {% block body %} {% for vote in votes %} -
+
-
+

{{ vote.title }}

-
-
+
+
+ {% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+ {% else %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+ {% endif %} +
@@ -18,12 +28,14 @@ Liste des votes

Categorie : {{ vote.category }}

-

Notes

+ {% if vote.description %} +

Description

- {{ vote.description|safe }} + {{ vote.description }}

+ {% endif %}
-
+ {% else %}
Il n'y a pas encore de votes. Désolé.
{% endfor %}