{% import "tungsten/components/ui.html" as ui %} {# StatStripWidget: a row of numbers split by thin lines. #}
{% if w.heading %}
{{ ui.card_heading(__(w.heading), __(w.description) if w.description else none, w.icon, w.icon_color) }}
{% endif %} {% set rows = [] %} {% for it in entries %}{% set _ = rows.append({'label': __(it.label), 'value': it.value, 'trend': it.badge, 'direction': 'down' if it.color == 'danger' else 'up'}) %}{% endfor %} {% if rows %}{{ ui.stat_strip(rows) }}{% else %}
{{ __('No data yet.') }}
{% endif %}