Refactor collection detail template to improve display of exam mode and access information

This commit is contained in:
Ross
2026-02-02 22:15:20 +00:00
parent 10d30cdaa6
commit f29df840c6
+5 -6
View File
@@ -21,23 +21,22 @@
{% include 'exam_notes.html' %}
<p class="mb-1">
<span class="badge bg-info text-dark me-2">{{ collection.exam_mode }}</span>
<small class="text-muted">(open access: {{ collection.exam_open_access }})</small>
</p>
<p class="mb-2">
{% include "generic/partials/exams/exam_status.html#publish-results" %}
{% include "generic/partials/exams/exam_status.html#exam-active" %}
{% include "generic/partials/exams/exam_status.html#publish-results" %} {% include "generic/partials/exams/exam_status.html#exam-active" %}
</p>
<p class="mb-1">
<span class="badge bg-secondary me-2">{{ collection.get_collection_type_display }}</span>
<span class="badge bg-light text-dark me-2">Self review: {{ collection.self_review }}</span>
Collection type: <span class="badge bg-secondary me-2">{{ collection.get_collection_type_display }}</span>
Self review: <span class="badge bg-light text-dark me-2">{{ collection.self_review }}</span>
Open access:
{% if collection.open_access %}
<span class="badge bg-success">Open</span>
{% else %}
<span class="badge bg-warning text-dark">Restricted</span>
{% endif %}
Exam mode: <span class="badge bg-info text-dark me-2">{{ collection.exam_mode }}</span>
</p>
{% if collection.prerequisites.exists %}