Refactor game results display and scoring logic in templates and CSS

This commit is contained in:
Edgar P. Burkhart 2025-06-15 15:46:35 +02:00
parent e039889488
commit 2278345f32
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
5 changed files with 118 additions and 40 deletions

View file

@ -63,40 +63,5 @@
{% endfor %}
</ol>
</details>
{% if musikgame.over %}
<h2>
<i class="ri-list-ordered"></i> Résultats
</h2>
<details open>
<summary role="button">
<i class="ri-list-ordered-2"></i> Résultats
</summary>
<table class="striped">
<thead>
<tr>
<th>
<i class="ri-list-ordered-2"></i>
</th>
<th>
<i class="ri-music-2-fill"></i> Musique
</th>
<th>
<i class="ri-user-line"></i> Joueur
</th>
</tr>
</thead>
<tbody>
{% for music in musikgame.musicgameorder_set.all %}
<tr>
<td>{{ music.order }}</td>
<td>
<a href="https://youtu.be/{{ music.music_video.yt_id }}">{{ music.music_video.title }}</a>
</td>
<td>{{ music.player }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</details>
{% endif %}
{% include "game/include/game_results.html" %}
{% endblock content %}