{# docker/widget_resources.html — dashboard widget: CPU + memory bars for running containers #}
{% if not containers %}
No running containers.
{% else %}
{% for c in containers %}
{{ c.name }}
{% if c.cpu_pct is not none %}CPU {{ "%.1f" | format(c.cpu_pct) }}%{% endif %}
{% if c.mem_pct is not none %} · Mem {{ "%.1f" | format(c.mem_pct) }}%{% endif %}