{# 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) %}
Not read: {{ drives_error }}.
{% endif %} {% for d in drives %} {% set tone, label = drive_badge[d.state] %}Not counted, likely nothing wired to them: {% for why, group in unwired_temps.items()|groupby("1.1") %}{% for label, v in group %}{{ label }} {{ "%.0f"|format(v[0]) }}°C{{ ", " if not loop.last }}{% endfor %} ({{ why }}){{ "; " if not loop.last }}{% endfor %}.
{% endif %}