{% from "_macros.html" import service_error, bar, disk_state, disk_row %} {#- ── Array ───────────────────────────────────────────────────── Its own partial (rather than inline in system.html) so the refresh button can re-fetch and swap in just this section via `/api/array/refresh` without a full page reload — Unraid's stats aren't cached (see get_unraid_stats), so a stale reading here only ever means "haven't reloaded the page since", and the button exists purely for the peace-of-mind of confirming that in place. -#} {% if unraid.status != 'ok' %}
| Disk | Device | Size | Free | Usage | Temp |
|---|---|---|---|---|---|
| {{ dk.name }} | {{ dk.device | default('—') }} | {{ dk.total | default('—') }} | {{ dk.free | default('—') }} | {{ bar(dk.used_pct | default(0)) }} {{ dk.used_pct | default(0) | round | int }}% | {{ disk_state(dk) }} |
| {{ ck.name }} | {{ ck.device | default('—') }} | {{ ck.total | default('—') }} | {{ ck.free | default('—') }} | {{ bar(ck.used_pct | default(0)) }} {{ ck.used_pct | default(0) | round | int }}% | {{ disk_state(ck) }} |