Belote/templates/game_see.html

46 lines
2.3 KiB
HTML

{% extends "base.html" %}
{% block title %} Jeu {% endblock %}
{% block titre %} Jeu {{ game.name }} {% endblock %}
{% block contenu %}
<div id="zone-de-contenu">
<fieldset class="fieldset" ><legend style="font-size:25px;">Table</legend>
<p><b>Admin</b> : {{ game.admin }}</p>
<p><b>Nombre de parties</b> : {% if game.turn <= -8 %}{{ game.partie - 1 }}{% else %}{{ game.partie }}{% endif %}</p>
{% if game.start %}
{{lp}}
<table width=100%>
<tr style="font-weight:bold;"><td>Équipes</td><td style="text-align:center;">Points</td></tr>
<tr><td><ul>
<li>{{ serialized['playersinfo'][serialized['players'][0]] }} ({{ serialized['players'][0] }})
<li>{{ serialized['playersinfo'][serialized['players'][2]] }} ({{ serialized['players'][2] }})
</ul></td>
<td style="text-align:center">{{ game.cumul_0 }}</td>
</tr>
<tr><td><ul>
<li>{{ serialized['playersinfo'][serialized['players'][1]] }} ({{ serialized['players'][1] }})
<li>{{ serialized['playersinfo'][serialized['players'][3]] }} ({{ serialized['players'][3] }})
</ul></td>
<td style="text-align:center">{{ game.cumul_1 }}</td>
</tr>
</table>
{% endif %}
</fieldset>
{% if game.start %}
<fieldset class="fieldset" ><legend style="font-size:25px;">Partie en cours</legend>
<p><b>Tour</b> : {{ serialized['turn'] }}</p>
<p><b>Atout</b> : {% if serialized['atout'] is none %} - {% else %}{{ serialized['atout'] }}{% endif %}</p>
<p><b>Pris par</b> : {% if serialized['preneur'] is none %} - {% else %}{{ serialized['playersinfo'][serialized['preneur']] }} ({{ serialized['preneur'] }}){% endif %}</p>
<p><b>Cartes jouées</b> : {{ serialized['played'] }}</p>
{% set pj = (serialized['first_player'] + game.turn) % 4 %}
<p><b>Prochain joueur</b> : {{ serialized['playersinfo'][serialized['players'][pj]] }} ({{ serialized['players'][pj] }})</p>
</fieldset>
{% endif %}
</div>
{% endblock %}