{% load i18n %}
{% comment %}
Render a {css, icon, label, title} badge dict from _display.build_badge
/ flag_badge. The verbose enum label lives in `title` (hover) so a dense
list cell stays narrow; the icon carries meaning and the colour carries
severity. Shared by run_list and invocation_list so the badge columns
render identically across both tables.
{% endcomment %}
<span class="badge {{ badge.css }} text-nowrap"{% if badge.title %} title="{{ badge.title }}"{% endif %}>
    {% if badge.icon %}<i class="fas {{ badge.icon }}" aria-hidden="true"></i> {% endif %}{{ badge.label }}
</span>
