summaryrefslogtreecommitdiff
path: root/templates/games.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/games.j2')
-rw-r--r--templates/games.j221
1 files changed, 12 insertions, 9 deletions
diff --git a/templates/games.j2 b/templates/games.j2
index b070b16..0285de1 100644
--- a/templates/games.j2
+++ b/templates/games.j2
@@ -1,17 +1,20 @@
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth" id="games">
<thead>
- <th> Court </th>
- <th colspan="2"> Team 1 </th>
- <th colspan="2"> Team 2 </th>
+ <th colspan="5" align="center"> {{ title }} </th>
+</thead>
+<thead>
+ <th align="center"> Court </th>
+ <th colspan="2" align="center"> Team 1 </th>
+ <th colspan="2" align="center"> Team 2 </th>
</thead>
<tbody>
{% for game in games %}
- <tr>
- <th>{{ game.court.number }}</th>
- <td>{{ game.team1.player1.name }}</th>
- <td>{{ game.team1.player2.name }}</th>
- <td>{{ game.team2.player1.name }}</th>
- <td>{{ game.team2.player2.name }}</th>
+ <tr {% if game.team1.player1 == 'RESERVED' %} class="is-danger" {% endif %}>
+ <th align="center">{{ game.court }}</th>
+ <td>{{ game.team1.player1 }}</th>
+ <td>{{ game.team1.player2 }}</th>
+ <td>{{ game.team2.player1 }}</th>
+ <td>{{ game.team2.player2 }}</th>
</tr>
{% endfor %}
</tbody>