<div class="row">
<div class="span9">
<h2 class='page-header'>{{ vote.title }}</h2>
-
{% if not vote.is_transparent %}
<div class="alert alert-info">Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.</div>
{% endif %}
{% for choice in choices %}
<th>{{ choice.name }}</th>
{% endfor %}
+ {% if 'user' in session %}
<th></th>
+ {% endif %}
</tr>
</thead>
{% else %}
<td class="no"></td>{% endif %}
{% endfor %}
- <td>{% if 'user' in session and user.userid == session.user.id %}<a href="{{ url_for('vote_deletechoices', idvote=vote.id, iduser=session.user.id) }}" class="btn btn-mini btn-danger" title="Supprimer"><i class="icon-remove icon-white"></a>{% endif %}</td>
+ {% if 'user' in session %}
+ <td>{% if user.userid == session.user.id %}<a href="{{ url_for('vote_deletechoices', idvote=vote.id, iduser=session.user.id) }}" class="btn btn-mini btn-danger" title="Supprimer"><i class="icon-remove icon-white"></a>{% endif %}</td>
+ {% endif %}
</tr>
{% endif %}
{% endfor %}
{% for choice in choices %}
<td>{{ choice.nb }}</td>
{% endfor %}
+ {% if 'user' in session %}
<td></td>
+ {% endif %}
</tr>
{% endif %}
</tfoot>
<div class="span3">
<h3>Informations</h3>
+<strong>Avancement : </strong> {{ vote.nb_votes }} / {{ vote.max_votes }}
+<div class="progress progress-striped {% if vote.nb_votes == vote.max_votes %}progress-success{% endif %}">
+ <div class="bar" style="width: {{ vote.percent }}%;"></div>
+</div>
<dl class="dl-horizontal">
<dt>Publié par <dd><code>maethor</code>
<dt>Début le <dd><code>{{ vote.date_begin }}</code>