{% extends 'base_template.html' %}
{% import "_macros.html" as macros %}
{# SD-752 phases 1 + 2.
Each chapter exposes a uniform shape:
{"name": str,
"narrative": list[str],
"tables": list[dict],
"diagram_placeholder": str | None,
"diagram_data_uri": str | None,
"diagram_caption": str | None,
"diagram_legend": [{"icon_uri": str, "label": str}, ...]}
``diagram_data_uri`` is a base64-encoded PNG produced by netwlens.
When present it renders as an inline followed by the icon
legend (filtered to types present on the diagram) and a one-line
caption explaining the ▶/arrowhead convention. ``diagram_placeholder``
is the fallback when the render failed.
#}
{% block content %}
{{ paragraph }}
{% endfor %}{{ chapter.diagram_source_note }}
{% endif %}{{ chapter.diagram_caption }}
{% endif %} {% elif chapter.diagram_placeholder %}{{ chapter.diagram_placeholder }}
| {{ column }} | {% endfor %}
|---|
| {{ cell }} | {% endfor %}
{{ table.empty_message or "Not present at this site." }}
{% endif %} {% endfor %} {% endif %} {% if chapter.diagram_legend %}