{% import "tungsten/components/ui.html" as ui %} {# GaugeWidget: progress to a target as a half circle or ring. #} {% set filled = w.variant in ('dark', 'brand') %}
{% if filled %}{% endif %}

{{ __(w.heading or '') }}

{% if w.description %}

{{ __(w.description) }}

{% endif %}
{{ percent | round | int }}%
{% if w.shape == 'ring' %}
{{ ui.progress_ring(percent, 'gray' if w.variant == 'brand' else w.color, 168, 16, __(gauge.label or w.label) if (gauge.label or w.label) else none, gauge.display) }}
{% else %} {{ ui.gauge(percent, w.color if w.variant != 'brand' else 'gray', gauge.display, gauge.caption, __(gauge.label or w.label) if (gauge.label or w.label) else none, filled) }} {% endif %}