{{ title }}

{% for metric in metrics %}
{{ metric.label }}
{{ metric.value }}
{% if metric.description %}
{{ metric.description }}
{% endif %}
{% endfor %}
{% if not metrics %}

{{ empty_message | default("No metrics available.") }}

{% endif %} {% if items and columns %}
{% for col in columns %} {% endfor %} {% for item in items %} {% set attn = item.get("_attention") if item.get is defined else none %} {% for col in columns %} {% endfor %} {% endfor %}
{{ col.label }}
{% if col.type == "badge" %} {{ item[col.key] | default("") }} {% elif col.type == "bool" %} {{ item[col.key] | bool_icon }} {% elif col.type == "date" %} {{ item[col.key] | dateformat }} {% elif col.type == "currency" %} {{ item[col.key] | currency }} {% elif col.type == "ref" %} {% set ref = item[col.key] %} {% set display_name = item.get(col.key ~ "_display", "") %} {% if ref is mapping %} {% set display_name = display_name or (ref | ref_display) %} {% if col.ref_route and ref.get("id") %} {{ display_name }} {% else %}{{ display_name }}{% endif %} {% elif display_name %}{{ display_name }}{% elif ref %}{{ ref }}{% else %}-{% endif %} {% else %} {{ item[col.key] | default("") | truncate_text }} {% endif %}
{% endif %}