Implement vote closing
This commit is contained in:
@ -36,6 +36,23 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>Tour actuel :</b>
|
||||
{{ game.rounds|length }}
|
||||
</li>
|
||||
<li>
|
||||
<b>État :</b>
|
||||
{% if game.state.value == 0 %}
|
||||
<span style="color: yellow;">En préparation ...</span>
|
||||
{% elif game.state.value == 1 %}
|
||||
<span style="color: red;">Votes en cours ...</span>
|
||||
{% else %}
|
||||
<span style="color: green;">Résultats du tour</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>Récapitulatif par tour</h2>
|
||||
|
||||
{% for round in game.rounds %}
|
||||
@ -58,7 +75,7 @@
|
||||
<td rowspan="2">{{ room.room.value }}</td>
|
||||
{% endif %}
|
||||
<td>{{ vote.player1.name }}{% if vote.player2 %}, {{ vote.player2.name }}{% endif %}</td>
|
||||
{% if round.round != game.rounds|length or admin %}
|
||||
{% if round.round != game.rounds|length or game.state.value == 2 or admin %}
|
||||
<td>{{ vote.vote.value|default('Pas de vote') }}</td>
|
||||
{% else %}
|
||||
<td><em>Vote en cours ...</em></td>
|
||||
|
Reference in New Issue
Block a user