diff --git a/plugins/docker/templates/docker/rows.html b/plugins/docker/templates/docker/rows.html index e65e4b4..9a9b37d 100644 --- a/plugins/docker/templates/docker/rows.html +++ b/plugins/docker/templates/docker/rows.html @@ -1,10 +1,10 @@ {# docker/rows.html — HTMX fragment for the Docker page (#5298–#5301): - a verdict line with only the problem counts that aren't zero; what needs + a verdict line; what needs attention (service.needs_attention, the ranking the MCP tools use); hosts whose Docker is not answering; what failed in 24h, each with its logs; then the swarm services and the standalone containers as two tables that share the filter bar's search, filters and sort (overview.py). #} -{% from "_macros.html" import stat_tile, status_badge, status_dot, sort_th %} +{% from "_macros.html" import status_badge, status_dot, sort_th %} {% from "docker/_usage.html" import cpu, mem, cores %} {% macro th(key, label, cls=none, title=none) -%} {{ sort_th(label, sort_url(key), active=f.sort == key, desc=f.dir == 'desc', cls=cls, title=title) }} @@ -22,20 +22,15 @@ {%- if services_total %} · {{ services_healthy }}/{{ services_total }} services healthy{% endif %} {%- if containers_total %} · {{ running }} container{{ "s" if running != 1 }} running{% if stopped %}, {{ stopped }} stopped{% endif %}{% if services_total %} outside services{% endif %}{% endif %} {%- if docker_hosts %} · {{ docker_hosts }} Docker host{{ "s" if docker_hosts != 1 }}{% endif %} + {%- if stale %} · {{ stale }} stale{% endif %}

-{% if unhealthy or restarting or failures or stale %} -
- {% if unhealthy %}{{ stat_tile("Unhealthy", unhealthy, state="crit") }}{% endif %} - {% if restarting %}{{ stat_tile("Restarting", restarting, state="crit", hint="restarting or crash-looping") }}{% endif %} - {% if failures %}{{ stat_tile("Failed (24h)", failures|length, state="warn", hint="listed below, with their logs", href="#failures") }}{% endif %} - {% if stale %}{{ stat_tile("Stale", stale, state="stale", hint="no recent report") }}{% endif %} -
-{% endif %} {# ── Needs attention ──────────────────────────────────────────────────────── #} {% if attention or failing_services %}
-

Needs attention

+

Needs attention {{ problems }} + {%- if unhealthy %} · {{ unhealthy }} unhealthy{% endif %} + {%- if restarting %} · {{ restarting }} restarting{% endif %}