Improve exam display layout by adding badges for questions and candidates in the exam list

This commit is contained in:
Ross
2025-11-06 22:09:31 +00:00
parent 8f2ca66bbb
commit 53e18e296e
@@ -9,9 +9,15 @@
<input class="form-check-input exam-select-checkbox" type="checkbox" name="exam_ids" value="{{ exam.pk }}" id="select-exam-{{ exam.pk }}">
</div>
<div>
<h5 class="mb-0"><a href="{% url app_name|add:':exam_overview' pk=exam.pk %}">
{% if exam.exam_mode %}Exam:{% else %}Packet:{% endif %} {{ exam }}
</a></h5>
<h5 class="mb-0 d-flex align-items-center">
<a href="{% url app_name|add:':exam_overview' pk=exam.pk %}">
{% if exam.exam_mode %}Exam:{% else %}Packet:{% endif %} {{ exam }}
</a>
<small class="ms-2 text-muted">
<span class="badge bg-secondary">Questions: {{ exam.get_questions|length }}</span>
<span class="badge bg-secondary ms-1">Candidates: {{ exam.stats_candidates|default:0|floatformat:0 }}</span>
</small>
</h5>
<small class="text-muted">Authors: {{ exam.get_authors }}</small>
{% if exam.exam_mode %}
{% if app_name in "rapids longs anatomy" %}