1 {% extends
"layout.html" %}
6 {% for vote in votes %}
10 <h3><a href=
"{{ url_for('vote', idvote=vote.voteid) }}">{{ vote.title }}
</a></h3>
13 {% if vote.nb_votes ==
0 %}
14 <div class=
"progress progress-striped progress-danger">
15 <div class=
"bar" style=
"width: 100%;"><strong>{{ vote.nb_votes }} / {{ vote.max_votes }}
</strong></div>
18 <div class=
"progress progress-striped {% if vote.nb_votes == vote.max_votes %}progress-success{% endif %}">
19 <div class=
"bar" style=
"width: {{ vote.percent }}%;"><strong>{{ vote.nb_votes }} / {{ vote.max_votes }}
</strong></div>
26 <h4>Deadline : {{ vote.date_end }}
</h4>
27 <h4>Groupe : {{ vote.groupname }}
</h4>
28 <h4>Categorie : {{ vote.category }}
</h4>
31 {% if vote.description %}
34 {{ vote.description }}
40 <div class=
"alert">Il n'y a pas encore de vote. Désolé.
</div>