{# Responsive: title to left, action buttons (include) to the right on md+ #}

Exam: {{ exam }}

{% comment %}
{% include "generic/exam_link_headers.html" %}
{% endcomment %}
{% include 'exam_notes.html' %} {% if exam.examcollection %}
Part of collection: {{ exam.examcollection }}
{% endif %} {% if exam.recreate_json %} {% endif %} {% if exam.exam_mode and not exam.exam_open_access %} {% if not exam.cid_user_groups.count and not exam.user_user_groups.count %} {% if not candidate_count.0 and not candidate_count.1 %} {% endif %} {% endif %} {% endif %} {% if exam.archive %} {% endif %}
This exam has {{ question_number }} questions  •  Time limit: {{ exam.time_limit }} seconds (1Q)
Author(s): {% for author in exam.author.all %}{{ author }}{% if not forloop.last %}, {% endif %}{% endfor %}
Exam mode: {{ exam.exam_mode }} {% if exam.exam_mode %} {% if exam.exam_open_access %}
Available to all registered users.
{% else %} {# Improved candidate counts: use compact buttons with badges and icons; stack on xs, inline on md+ #} {% endif %} {% endif %}
{# Cards stack vertically on mobile, align on md+ using gap utilities #}
{% include "generic/partials/exams/exam_status.html#exam-active" %} {% include "generic/partials/exams/exam_status.html#publish-results" %}
{% if exam.start_date %}Start: {{ exam.start_date }}{% endif %} {% if exam.end_date %}/ End: {{ exam.end_date }}{% endif %}
Open access: {{ exam.open_access }}
Markers:
{% for marker in exam.markers.all %} {{ marker }}{% if not forloop.last %},{% endif %} {% empty %}
No additional markers.
{% endfor %}
Supervisor visible: {{ exam.results_supervisor_visible }}
{# Use d-block on small screens so the summary text wraps nicely; md uses flex for spacing #}
{% if can_edit and exam.exam_mode %}
Answer management
Manage answers for this collection. These actions are permanent.
{% endif %}
{# Authors and supervisor visibility moved earlier in the header; duplicate block removed #}
{% block css %} {% endblock css %}