1 {% extends
"layout.html" %}
6 {% for vote in votes %}
10 <h3><a href=
"{{ url_for('vote', idvote=vote.voteid) }}">{{ vote.title }}
</a></h3>
13 <div class=
"progress progress-striped progress-{% if vote.nb_votes > 0 and vote.nb_votes / vote.max_votes >= vote.quorum %}success{% else %}danger{% endif %}">
14 <div class=
"bar" style=
"width: {{ vote.percent }}%;">
15 <strong>{{ vote.nb_votes }} vote{{ 's' if vote.nb_votes
> 1 else '' }} / {{ vote.max_votes }} ({{ vote.percent }}%)
</strong></div>
21 <h4>Échéance : {{ vote.date_end }}
</h4>
22 <h4>Groupe : {{ vote.groupname }}
</h4>
23 <h4>Categorie : {{ vote.category }}
</h4>
26 {% if vote.description %}
29 {{ vote.description }}
35 <div class=
"alert">Il n'y a pas encore de vote. Désolé.
</div>