Authors: {{ collection.get_authors }}
{% comment %} Show archive state and counts per exam type {% endcomment %}
{% if collection.archive %}
Archived
{% endif %}
{# Use annotated counts provided by the view to avoid per-card COUNT queries #}
{{ collection.total_count }} exams
{# Per-type badges (only show non-zero) #}
{% with a=collection.anatomy_count l=collection.longs_count p=collection.physics_count r=collection.rapids_count s=collection.sbas_count sh=collection.shorts_count %}
{% if a %}Anatomy {{ a }}{% endif %}
{% if l %}Longs {{ l }}{% endif %}
{% if p %}Physics {{ p }}{% endif %}
{% if r %}Rapids {{ r }}{% endif %}
{% if s %}SBAs {{ s }}{% endif %}
{% if sh %}Shorts {{ sh }}{% endif %}
{% endwith %}