{{ heading }}
{% if message %}{{ message }}
{% endif %} {% if grouped %} {# Two-layer grouping: section -> subgroup -> items. Produced by DiagnosticCollector.grouped(). #} {% for sec in grouped %}{{ sec.section }}
{% for sub in sec.subgroups %}{{ sub.label }}
{% for item in sub.diagnostics %}
{% if item.suggestion %}
{% endfor %}
{{ item.suggestion }}
{% endif %}
{% if item.source %}
{{ item.source }}
{% endif %}
{% if item is string %}
{% else %}
{% if item.suggestion %}
{% endfor %}
{% endif %}
{% if help_text %}
{{ item.suggestion }}
{% endif %}
{% endif %}
{# help_text is wrapped in markupsafe.Markup at construction; plain
strings auto-escape correctly. #}
{{ help_text }}
{% endif %}
{% if continue_url %}
Continue to study →
{% endif %}