feat: Add feedback overview button visibility based on review mode and exam completion status

This commit is contained in:
Ross
2026-04-27 21:34:30 +01:00
parent 1f806d2e60
commit 474ad205f6
@@ -35,16 +35,18 @@
{% if cid_user_exam.completed %} {% if cid_user_exam.completed %}
<div class="mt-1 small">End time: {{ cid_user_exam.end_time|default:"-" }}</div> <div class="mt-1 small">End time: {{ cid_user_exam.end_time|default:"-" }}</div>
{% endif %} {% endif %}
<div class="mt-2"> {% if collection.in_review_mode or cid_user_exam.completed %}
<a class="btn btn-sm {% if total_outstanding_feedback %}btn-danger{% else %}btn-outline-secondary{% endif %}" <div class="mt-2">
href="{% if cid is not None %}{% url 'atlas:collection_feedback_overview' pk=collection.id cid=cid passcode=passcode %}{% else %}{% url 'atlas:collection_feedback_overview_user' pk=collection.id %}{% endif %}"> <a class="btn btn-sm {% if total_outstanding_feedback %}btn-danger{% else %}btn-outline-secondary{% endif %}"
{% if total_outstanding_feedback %} href="{% if cid is not None %}{% url 'atlas:collection_feedback_overview' pk=collection.id cid=cid passcode=passcode %}{% else %}{% url 'atlas:collection_feedback_overview_user' pk=collection.id %}{% endif %}">
Review Feedback Hub {% if total_outstanding_feedback %}
{% else %} Review Feedback Hub
Open Feedback Hub {% else %}
{% endif %} Open Feedback Hub
</a> {% endif %}
</div> </a>
</div>
{% endif %}
</div> </div>
</div> </div>
</div> </div>