{# docker/rows.html — HTMX fragment for the Docker main page #} {# ── Summary strip ─────────────────────────────────────────────────────────── #}
Running
{{ running }}
Stopped
{{ stopped }}
Total
{{ container_data | length }}
{# ── Container table ─────────────────────────────────────────────────────── #} {% if container_data %}
{% for item in container_data %} {% set c = item.container %} {% endfor %}
Container Image Ports CPU % CPU history Mem % Mem history
{{ c.name }}
{{ c.status }}
{{ c.image }} {% for p in item.ports %}
{{ p.host_port }}:{{ p.container_port }}/{{ p.protocol }}
{% endfor %}
{% if c.cpu_pct is not none %} {{ "%.1f" | format(c.cpu_pct) }}% {% else %} {% endif %} {{ item.sparkline_cpu | safe }} {% if c.mem_pct is not none %} {{ "%.1f" | format(c.mem_pct) }}% {% else %} {% endif %} {{ item.sparkline_mem | safe }}
{% else %}
No containers found. Make sure the Docker socket is accessible and the plugin is configured correctly.
{% endif %}