<div class="row well">
<div class="span4">
<h3><a href="{{ url_for('vote', idvote=vote.voteid) }}">{{ vote.title }}</a></h3>
- <div class="progress progress-striped">
- <div class="bar" style="width: 60{{ vote.percent }}%;"></div>
+ <div class="progress progress-striped {% if vote.nb_votes == vote.max_votes %}progress-success{% endif %}">
+ <div class="bar" style="width: {{ vote.percent }}%;"></div>
</div>
</div>
<div class="span3">
<h4>Deadline : {{ vote.date_end }} </h4>
- <h4>Groupe : {{ vote.group }}</h4>
+ <h4>Groupe : {{ vote.groupname }}</h4>
<h4>Categorie : {{ vote.category }}</h4>
</div>
<div class="span3">