X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvotes.html;h=ddb3ce0aad756662cae24bd50ca07625d8662d34;hb=cbc81a0257e8e461a254c89ce34adc60ae3e9a42;hp=d770c2ba4b25b492170a6bee7bc9ab030172fe1d;hpb=07a7e13f132e72a1586da7a55423abfdbd8d623f;p=cavote.git diff --git a/templates/votes.html b/templates/votes.html index d770c2b..ddb3ce0 100644 --- a/templates/votes.html +++ b/templates/votes.html @@ -4,27 +4,39 @@ Liste des votes {% endblock %} {% block body %} {% for vote in votes %} -
+
-
-

{{ vote.title }}

-
-
+
+

{{ vote.title }}

+
+
+ {% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+ {% else %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+ {% endif %} +

Deadline : {{ vote.date_end }}

-

Groupe : {{ vote.rolename }}

+

Groupe : {{ vote.groupname }}

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é.
+
Il n'y a pas encore de vote. Désolé.
{% endfor %} {% endblock %}