Refactor game results display and scoring logic in templates and CSS
This commit is contained in:
parent
e039889488
commit
2278345f32
5 changed files with 118 additions and 40 deletions
16
game/templates/tags/game/answer.html
Normal file
16
game/templates/tags/game/answer.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue