orochi-discord/orochi/templates/list.html

81 lines
3.3 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="fr">
<head>
<title>Zero Escape: Radical Outcome</title>
2021-11-09 00:15:39 +00:00
<meta charset="utf-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</head>
<body>
2021-11-09 00:15:39 +00:00
<div class="container">
<h1>Scores Nonary Game: Ambidex Edition</h1>
2021-11-09 00:15:39 +00:00
<hr>
2021-11-09 00:15:39 +00:00
<h2>Tableau des scores</h2>
<table class="table table-striped">
<tbody>
<tr>
2021-11-09 00:15:39 +00:00
{% for player in game.players.values() %}
<th scope="row">{{ player.name }}</th>
{% endfor %}
</tr>
<tr>
{% for player in game.players.values() %}
<td>{{ player.score }}{% if player.score <= 0 %} ☠️ {% elif player.score >= 9 %} 9⃣ {% endif %}</td>
{% endfor %}
</tr>
2021-11-09 00:15:39 +00:00
</tbody>
</table>
2021-11-09 00:15:39 +00:00
<hr>
2021-11-08 21:10:08 +00:00
2021-11-09 00:15:39 +00:00
<h2>Récapitulatif par tour</h2>
2021-11-09 00:15:39 +00:00
<div class="row">
{% for round in game.rounds if admin or game.state.value > 0 or round.round < game.rounds|length %}
<div class="col-sm-3 table-responsive">
<h3>Tour n°{{ round.round }}</h3>
<hr>
2021-11-09 00:15:39 +00:00
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Salle</th>
<th scope="col">Équipes</th>
<th scope="col">Vote</th>
</tr>
</thead>
2021-11-09 00:15:39 +00:00
<tbody>
{% for room in round.rooms %}
{% for vote in room.votes %}
<tr>
{% if loop.index0 == 0 %}
<th scope="row" rowspan="2">{{ room.room.value }}</th>
{% endif %}
<td>{{ vote.player1.name|default('<em>personne</em>')|safe }}{% if vote.player2 %}, {{ vote.player2.name }}{% endif %}</td>
{% if round.round != game.rounds|length or game.state.value == 2 or admin %}
2021-11-12 13:15:39 +00:00
<td>
{{ vote.vote.value|default('<em>Pas de vote</em>')|safe }}
{% if admin and vote.swapped %}
<span class="badge bg-danger">Échange</span>
{% endif %}
</td>
2021-11-09 00:15:39 +00:00
{% else %}
<td><em>Vote en cours ...</em></td>
{% endif %}
</tr>
2021-11-09 00:15:39 +00:00
{% endfor %}
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
2021-11-09 00:15:39 +00:00
</div>
</div>
</body>
</html>