{#- A node's entries as a page states them (ADR-0140, ADR-0145 decision 6): its Notes
tab's history, and the page of a path no node stands at, which lists the entries
written for it and beneath it.
**An entry** is a note of its own or the record of a pin, an act's one entry
however many parts it covered (decision 5). It says its kind by its mark and its
word; what it was on — the node, one of its lines by its text, linked to it where
the run reports it and marked where it does not, since a line that is not
reported is suspended, not gone (ADR-0047 decision 8), or an act's parts, listed
in a fold, how many it had in all and where it was made where that is another
node; from when to when and how long; who; a seen's status and a silence's level,
as a block draws them; why it ended and by whom, in the log's words; its words, an
admin's Markdown; and folded beneath them what the node showed then (ADR-0047
decision 6) — its status and its lines, each line on its status's tint. A note of
its own says who wrote it and when, who changed it last, and keeps its *Edit*
while it is the newest on its node. A pin's note written before a note kept its
kind says what it said: the note of a pin that has ended. Nothing here is a status
of the node now.
`entry_item` takes a `notes_tab.Shown`; `path` is the node's, as its address
writes it, and empty on the page of a gone path, where nothing links to a line and
nothing is edited, and where `at` names the path an entry stands at when it is one
beneath the page's own. `mine` are the words a refused edit brought back, in the
editor `editing` names, with why it was refused (`refused`). In the panel the
drawer frames (ADR-0147 decision 3) a note's editor stays in the frame and comes
back to the panel's address, the tab's `back`. -#}
{% from '_rule_block.html' import rule_mark, note_mark with context %}
{% macro note_context(note) -%}
{%- set context = note.context %}
{% if context.code %}The node showed {{ context.code }}{% else %}No node stood there{% endif %}
{%- if context.lines %}, {{ 'and the line read' if note.slug else 'and its lines read' }}:{% else %}.{% endif %} And {{ context.more }} more {{ 'line' if context.more == 1 else 'lines' }}.What {{ 'the line' if note.slug else 'the node' }} showed then
{%- for line in context.lines %}
{%- if coded %}
{%- endfor %}
{{ line.code }}
{%- endif %}
{{ line.text | markdown_inline(node=note.path) }}
{%- if at %}At {{ at }}. {% endif -%}
{{ shown.word }} · {{ on_said(shown, path) }}
{{ shown.started | localtime }}
{%- if record and shown.ended_at %} → {{ shown.ended_at | localtime }} · {{ shown.ran or shown.lasted }}{% endif %}
{%- if record -%} {% if shown.planned %}Planned as a {{ shown.planned }} by{% else %}By{% endif %} {{ first.created_by or 'unknown' }}{% if shown.alone %}{{ held_at(shown.kind, first) }}{% endif %} {%- if shown.ended %} · ended: {{ ended_said(shown.ended, shown.ended_by, shown.planned) }}{% elif not shown.standing %} · it has ended{% endif %}. {%- if first.set_at != first.created_at %} Last changed by {{ first.set_by or 'unknown' }} {{ first.set_at | localtime }}.{% endif %} {%- else -%} Written by {{ first.created_by or 'unknown' }} {%- if first.set_at != first.created_at %}, last changed by {{ first.set_by or 'unknown' }} {{ first.set_at | localtime }}{% endif %}. {%- if first.pin %} The note of a pin that has ended.{% endif %} {%- endif %}
{%- if shown.text %}