{# Current-state fragment for the full-metrics page — polled live via HTMX. Each poll re-renders the latest snapshot the server has. #} {% from "_macros.html" import status_badge %} {# A percentage bar graded by Settings → Thresholds for `kind` (cpu, mem, disk). #} {% macro bar(pct, kind) %}