{% if compliance %} {% set non_compliant = compliance.overall is defined and (compliance.overall|string|lower != 'pass') %}
Bracket compliance {% set ov = compliance.overall|string|lower %}
Overall: {% if ov == 'fail' %} FAIL {% elif ov == 'warn' %} WARN {% else %} PASS {% endif %} (Bracket: {{ compliance.bracket|title }}{{ ' #' ~ compliance.level if compliance.level is defined }})
{% if compliance.messages and compliance.messages|length > 0 %} {% endif %} {# Flagged tiles by category, in the same card grid style #} {% if flagged_meta and flagged_meta|length > 0 %}
Flagged cards
{% for f in flagged_meta %} {% set sev = (f.severity or 'FAIL')|upper %}
{{ f.name }} image
{% if f.owned %}✔{% else %}✖{% endif %}
{{ f.name }}
{{ f.category }}{% if f.role %} • {{ f.role }}{% endif %} {% if sev == 'FAIL' %} FAIL {% elif sev == 'WARN' %} WARN {% endif %}
{# Role-aware alternatives: pass the flagged name; server will infer role and exclude in-deck/locked #}
{% endfor %}
{% endif %} {% if compliance.enforcement %}
Tip: pick replacements first; your choices are honored during enforcement.
{% endif %}
{% endif %}