Refactor score display logic in exam scores user template for accuracy
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
{% if exam.publish_results or view_all_results %}
|
||||
<div class="small mt-2">
|
||||
Marks:
|
||||
{% if score|int >= 2 %}
|
||||
{% if score == 2 %}
|
||||
<span class="badge bg-success ms-1">{{ score }}</span>
|
||||
{% elif score|int == 1 %}
|
||||
{% elif score == 1 %}
|
||||
<span class="badge bg-warning text-dark ms-1">{{ score }}</span>
|
||||
{% else %}
|
||||
<span class="badge bg-secondary ms-1">{{ score }}</span>
|
||||
|
||||
Reference in New Issue
Block a user