Users can see waiting votes, votes can be terminated
[cavote.git] / templates / admin_votes.html
index 786cec3..e3faf72 100644 (file)
@@ -22,7 +22,7 @@
     {% for vote in votes %}
     <tr>
       <td>{{ vote.title }}</td>
-      <td>{% if vote.is_open %}<span class="label label-success">Ouvert</span>{% else %}<span class="label label-important">Fermé</span>{% endif %}</td>
+      <td>{% if vote.is_terminated %}<span class="label label-sucess">Terminé</span>{% else %}{% if vote.is_open %}<span class="label label-info">Ouvert</span>{% else %}<span class="label label-important">Fermé</span>{% endif %}{% endif %}</td>
       <td>{{ vote.date_end }}</td>
       <td>{{ vote.groupname }}</td>
       <td>{{ vote.category }}</td>