{# docker/widget.html — dashboard widget: container status overview, by host #}
{% if total_count == 0 %}
No containers reported yet.
{% else %}
{{ running_count }}running
{{ failed_24h }}failed (24h)
{# Swarm services — collapsed, each with its replicas' host chips (dashed = a
node with no Steward agent, count-only from placement). #}
{% if swarm_services %}
Swarm services
{% for s in swarm_services %}
{{ s.name }}{{ s.running }}/{{ s.desired }}
{% for r in s.replicas %}
{% if r.ghost %}
{{ r.host }} ×{{ r.count }}
{% else %}
{{ r.host }}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% for g in host_groups %}
{% if multi_host %}