{%- macro status_badge(status) -%} {%- if status == "accepted" -%} {% trans %}accepted{% endtrans %} {%- elif status == "revoked" -%} {% trans %}revoked{% endtrans %} {%- elif status == "expired" -%} {% trans %}expired{% endtrans %} {%- else -%} {% trans %}pending{% endtrans %} {%- endif -%} {%- endmacro -%}