diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-15 12:07:42 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-15 12:07:42 +0200 |
| commit | 600b6afff3066d5fc9c4eca659f969322e670a77 (patch) | |
| tree | 1bccadf85e486520d747bd1144ae98c7d0ad969b /templates/games.j2 | |
| parent | ccdf8fcb51a47b79d5a1c0042699b0d60c3c304c (diff) | |
Cleaned up the code significantly
Diffstat (limited to 'templates/games.j2')
| -rw-r--r-- | templates/games.j2 | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/templates/games.j2 b/templates/games.j2 index b070b16..55cabf4 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 colspan="5" align="center"> {{ title }} </th> +</thead> +<thead> <th> Court </th> - <th colspan="2"> Team 1 </th> - <th colspan="2"> Team 2 </th> + <th colspan="2" align="center"> Team 1 </th> + <th colspan="2" align="center"> Team 2 </th> </thead> <tbody> -{% for game in games %} +{% for _, game in games.items() %} <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> + <th>{{ 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> |
