{% macro status_label(status, attr="") -%} {{ STATUS_NAME_MAP[status] if status in STATUS_NAME_MAP else status }} {% endmacro -%}