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

@ -0,0 +1,16 @@
{% if empty %}
<td class="empty"></td>
<td class="empty sc">
<i class="ri-checkbox-blank-circle-fill"></i><span class="score">{{ score }}</span>
</td>
{% elif correct %}
<td class="correct">{{ answer }}</td>
<td class="correct sc">
<i class="ri-checkbox-circle-fill"></i><span class="score">{{ score }}</span>
</td>
{% else %}
<td class="wrong">{{ answer }}</td>
<td class="wrong sc">
<i class="ri-close-circle-fill"></i><span class="score">{{ score }}</span>
</td>
{% endif %}