{% 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 '_said.html' %}
{#- Everything the refresh swaps, and with it every pin the page states
and every editor of one that stands (ADR-0104 decisions 2 and 3): a
node's block with *Edit* and *Clear*, and on a node's page the head's
*Set maintenance*. The refresh waits while one of those editors is open
(decision 7, `poll.js`). -#}
{#- The shapes of the heads' icons, drawn once for the page (ADR-0127
decisions 2 and 3), as the status cues' are by `_page_end.html`: every cue
and mark in the grid refers to them, so the refresh carries none of the
paths. -#}
{% from '_rule_block.html' import icon_sprite, pin_editor, ack_editor with context %}{{ icon_sprite() }}
{% include '_status_grid.html' %}
{#- The one editor of a pin still to be set, for an admin: ‖ in a head's
icons clones it into the node's box (ADR-0127 decision 3) — and the ringed
check's, which marks what fails there seen (ADR-0142). Outside the grid,
so the refresh carries no editor and never takes these away. -#}
{%- if is_admin and layout != 'kiosk' %}
{{ pin_editor(here) }}
{{ ack_editor(here) }}
{%- 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) — and waits while
an editor of a pin is open in what it would swap (ADR-0104 decision 7). #}
{# Topology-weighted card spans (ADR-0056): the server
sends stable plans; this measures the responsive grid and reapplies the
matching one after initial render, a resize or the poll's fragment swap. #}
{# The tab's map (ADR-0127 decisions 9 and 10): what a viewer opened stands
through the ~10s fragment swap and a reload of the tab — every node's face,
the folds and a box's *⌄ all N* — which this one script
owns, event-delegated on #status-grid (the ADR-0019 pattern); poll.js calls
it around each swap, and tree-pending.js in the head holds the grid back
until it has run on a load. After the grid, without `defer`. #}
{# Cancel and Escape for a pin's editor, in a card or in a node's head: the
editor is the browser's own disclosure and works without this. #}
{# Inspection popover (ADR-0019): what each node's `about` opens with rides in
the grid's fragment (#node-meta, `_status_grid.html`), its heading in the
node's own head; rendered into a hover card client-side. #}
{#- A block's note on the wall (ADR-0135 decision 3): the mark's card, outside the
grid the refresh swaps, in the inspection card's look. -#}
{# 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. #}