Add podium styling and conditional rendering for players in musikgame detail template
This commit is contained in:
parent
33896916e6
commit
b1ec960dfa
2 changed files with 31 additions and 1 deletions
|
@ -33,7 +33,13 @@
|
|||
<h2>
|
||||
<i class="ri-group-2-fill"></i> Joueurs
|
||||
</h2>
|
||||
<p>{{ musikgame.players.all|join:", " }}</p>
|
||||
{% if musikgame.over %}
|
||||
<ol class="podium">
|
||||
{% for player in musikgame.players.all %}<li>{{ player.username }}</li>{% endfor %}
|
||||
</ol>
|
||||
{% else %}
|
||||
<p>{{ musikgame.players.all|join:", " }}</p>
|
||||
{% endif %}
|
||||
<h2>
|
||||
<i class="ri-music-2-fill"></i> Musiques
|
||||
</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue