{% set _dificulty_badge = "badge-secondary" %}
{% if value == "HIGH" %}
{% set _dificulty_badge = "badge-danger" %}
{% elseif value == "MEDIUM" %}
{% set _dificulty_badge = "badge-warning" %}
{% elseif value == "LOW" %}
{% set _dificulty_badge = "badge-success" %}
{% endif %}
<span class="badge {{ _dificulty_badge }}">{{ ("label." ~ value) | trans }}</span>