{% set page_title = 'Status' %}
{% include '_header.html' %}
{# Breadcrumb/title, the node's about, the server-seeded freshness line
(ADR-0005) and the filters, gathered into one aligned band. The stamp
keeps its id and its data-rendered-at and stays outside #status-grid,
so the ~10s poll is untouched: it still swaps only the grid, rewrites
only this line, and raises its banner between the two. #}
{% set band_stamp = true %}
{% set band_filters = true %}
{% include '_page_band.html' %}
{% include '_status_grid.html' %}
{% if is_admin and branch and node and layout != 'kiosk' %}
{#- The viewed node's own maintenance card (ADR-0014): the subtree
page is a dashboard of the children, so without it a pin on this
node is invisible here — and the branch pin, which the model and
POST /maintenance always supported, finally has a page. Outside
#status-grid, so the ~10s poll swap leaves an open form alone.
Deliberately absent on the overview root: a silence-everything form
is a foot-gun, so the root stays curl-only. #}
{% include '_maintenance_card.html' %}
{% endif %}
{% include '_page_end.html' %}
{# The rail's burger: swaps icons for icons + labels. Deliberately not
remembered across pages — collapsed is the default, and the burger is a
peek at the labels rather than a setting. #}
{# The ~10s fragment poll, shared with /system (poll.js swaps data-target
and keeps the #status-updated stamp truthful, ADR-0005). #}
{# Reason overflow (ADR-0024): clamps each card's reason block to its line
budget with an in-place header chevron (▼/▲) that survives the ~10s fragment swap
(event-delegated on #status-grid, the ADR-0019 pattern). #}
{# Branch density (ADR-0024): the "+N more" reveal for a level's capped quiet
boxes, toggled in place and re-applied across the ~10s fragment swap
(event-delegated on #status-grid, the ADR-0019 pattern). #}
{# Inspection popover (ADR-0019): static node metadata preloaded with the page
(not the polled fragment), rendered into a hover card client-side. #}
{# Maintenance click-popover (ADR-0019 machinery, ADR-0014 data): clicking
a card's "contains maintenance" pip opens this card listing that subtree's pins as
links. Event-delegated on #status-grid so it survives the ~10s poll swap. #}
{% if is_admin and layout != 'kiosk' %}
{% include '_pin_dialog.html' %}
{% endif %}