{# docker/widget.html — dashboard widget: container status overview #} {% if not containers and running_count == 0 and stopped_count == 0 %}
No containers found.
{% else %}
{{ running_count }} running
{% if stopped_count %}
{{ stopped_count }} stopped
{% endif %}
{% for c in containers %}
{{ c.name }} {% if c.cpu_pct is not none %} {{ "%.1f" | format(c.cpu_pct) }}% {% endif %}
{% endfor %}
{% endif %}