{% if severity == "info" %}
    <span class="badge text-bg-success" title="Information">I</span>
{% elif severity == "pedantic" %}
    <span class="badge text-bg-success" title="Pedantic">P</span>
{% elif severity == "warning" %}
    <span class="badge text-bg-warning" title="Warning">W</span>
{% elif severity == "error" %}
    <span class="badge text-bg-danger" title="Error">E</span>
{% elif severity == "experimental" %}
    <span class="badge text-bg-info" title="Experimental">X</span>
{% elif severity == "overridden" %}
    <span class="badge text-bg-dark" title="Overridden">O</span>
{% elif severity == "classification" %}
    <span class="badge text-bg-secondary" title="Classification">C</span>
{% else %}
    <span class="badge text-bg-dark">{{ severity }}</span>
{% endif %}
