orochi-discord/orochi/templates/list.html

74 lines
1.8 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<title>Zero Escape: Radical Outcome</title>
<style>
table {
border-collapse: collapse;
}
th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<h1>Scores Nonary Game: Ambidex Edition</h1>
<h2>Tableau des scores</h2>
<table>
<thead>
<tr>
<th>Joueur</th>
<th>Score</th>
</tr>
</thead>
<tbody>
{% for player in game.players.values() %}
<tr>
<td>{{ player.name }}</td>
<td>{{ player.score }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Récapitulatif par tour</h2>
{% for round in game.rounds %}
<h3>Tour n°{{ round.round }}</h3>
<table>
<thead>
<tr>
<th>Salle</th>
<th>Équipes</th>
<th>Vote</th>
</tr>
</thead>
<tbody>
{% for room in round.rooms %}
{% for vote in room.votes %}
<tr>
{% if loop.index0 == 0 %}
<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 %}
<td>{{ room.vote1.vote.value|default('Pas de vote') }}</td>
{% else %}
<td><em>Vote en cours ...</em></td>
{% endif %}
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endfor %}
</body>
</html>