{% load i18n %}
{% comment %}
Render an optional risk-flag badge precomputed in the view.
``badge`` is the ``{"css", "label"}`` 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.
Colour selection stays in ``_display``; this partial only renders.
{% endcomment %}
{% if badge %}
{{ badge.label }}
{% else %}
{% translate "no" %}
{% endif %}