{#- A packet's outline: done/total, a bar and the checklist (docs/outline-on-packet-page.md). ``ol``: data.outline. ``fold``: on the main pages, runs of done items fold to a line and the header says when the file last changed. ``finished``: the packet is done or closing, so open items are flagged. -#} {% macro style() -%} {%- endmacro %} {% macro item(i) -%}
  • {{ {"done": "✓", "active": "▶", "deferred": "–", "added": "+", "partial": "◐"}.get(i.state, "▶" if i.current else "○") }}{{ i.title or i.text }}
  • {%- endmacro %} {% macro panel(e, wpid, ol, fold=False, finished=False, id="outline") -%}

    Outline {{ ol.done }} of {{ ol.total }} done {%- if finished and ol.open %} · {{ ol.open }} still open{% endif %} · {{ ol.file }}{% if fold and ol.mtime %} · as of {{ ol.mtime|epoch }}{% endif %} · as a tree, with its history

    {%- endmacro %} {#- One line for the Snapshot: "7 of 12 done · ▶ 3b Parser". -#} {% macro line(ol) -%} {%- set cur = ol.entries|selectattr("current")|first -%} {{ ol.done }} of {{ ol.total }} done{% if cur %} · ▶ {{ cur.title or cur.text }}{% endif %} {%- endmacro %}