Highlight current user in game results and score display
This commit is contained in:
parent
2278345f32
commit
993ed8963c
4 changed files with 8 additions and 6 deletions
|
@ -21,7 +21,7 @@
|
|||
<i class="ri-user-line"></i> Joueur
|
||||
</th>
|
||||
{% for player in musikgame.musicgameresults_set.all %}
|
||||
<th>{{ player.player.username }}</th>
|
||||
<th {% if user == player.player %}class="me"{% endif %}>{{ player.player.username }}</th>
|
||||
<th class="sc">
|
||||
{% if forloop.first %}<i class="ri-medal-fill gold"></i>{% endif %}
|
||||
<span class="score">{{ player.score }}</span>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
{% if musikgame.over %}
|
||||
<ol class="podium">
|
||||
{% for player in musikgame.musicgameresults_set.all %}
|
||||
<li>
|
||||
<li {% if user == player.player %}class="me"{% endif %}>
|
||||
{{ player.player.username }} <span class="score">{{ player.score }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue