{% load i18n %}
{% comment %}
Render an optional risk-flag badge precomputed in the view.

``badge`` is the ``{"css", "icon", "label", "title"}`` dict from
``_display.flag_badge`` (or ``None`` when the flag is false). The
``None`` case renders a muted "no" so a false flag still reads as an
explicit value, not a blank cell. Rendering of the present case is
delegated to ``_badge.html`` so flag and enum badges look identical.
{% endcomment %}
{% if badge %}
    {% include "aa_discord_audit/_badge.html" with badge=badge only %}
{% else %}
    <span class="text-muted">{% translate "no" %}</span>
{% endif %}
