{% from '_series.html' import curve, quiet_line, readings_table %} {% from '_status_cue.html' import status_cue %} {% from '_window_bar.html' import window_bar %} {% set page_title = 'Series' %} {% include '_header.html' %}
{% include '_page_band.html' %} {#- A node's Series view (ADR-0097 decision 1): every curve that stands at or beneath the node, each under the node it stands on, in the tree's order, all on one time axis so that curves read by different checks at different moments stand one above the other. Each group is headed by its node's status and sentence as they are now and opens its Status view. Beneath them, the newest readings of each series they were drawn from, folded; and each check beneath whose series draw no curve, with its History page. Not polled: it is read, as History is. -#} {%- if first and last %}

Every curve that stands at or beneath this node, on one time axis. Each node heads its curves with the status it has now.

{%- else %}

No curves to display.

{%- endif %} {#- The bar that names the window the view is drawn over and moves it (`_window_bar.html`, ADR-0098 decision 3). -#} {%- if first and last and bar %} {{ window_bar(bar) }} {%- endif %}
{%- for group in groups %} {%- set outer = loop %}

{%- if group.node %}{{ status_cue(group.node.code, labeled=true) }}{% endif %} {{ group.name }} {%- if group.node and group.node.reason %} {{ group.node.reason[0] | markdown_inline }} {%- endif %}

{#- Every curve's time axis holds the same links: the first curve's are the keyboard's, and the rest are for the pointer. -#} {%- for c in group.curves %} {{ curve(c, zoom, times, group.anchor, outer.first and loop.first) }} {%- endfor %}
{%- endfor %}
{%- for one in quiet %} {{ quiet_line(one) }} {%- endfor %} {%- if readings %}

Newest readings

{%- for view in readings %}
{%- set noun = "reading" if view.kept == 1 else "readings" %} {{ view.title }} · {{ view.subject }} — {%- if view.rows and view.within is not none %} the newest {{ view.rows | length }} of {{ view.within }} in this window, of {{ view.kept }} {{ noun }} kept; every one is on its History page {%- elif view.rows %} the newest {{ view.rows | length }} of {{ view.kept }} {{ noun }} kept; every one is on its History page {%- else %} {{ view.kept }} {{ noun }} kept, every one on its History page {%- endif %} {%- if view.rows %}
{{ readings_table(view) }}
{%- endif %}
{%- endfor %} {%- endif %}
{% include '_page_end.html' %}