{# The page's visible heading, as a macro: components/page_header.html (the
Python PageHeader) and the library's own pages (CRUD list, view, create,
edit, trash, change history, search results) all render it, so a record
page and a component page share one layout.
{% from "components/_page_header.html" import page_header %}
{% call page_header(title, back_url=view.url, back_target="#main-content") %}
New
{% endcall %}
* title, subtitle — text is escaped; Markup is not.
* actions — the controls at the end of the row: a call block's body, or
``actions=`` (Markup) when there is no call block. Whitespace only
counts as none, so no empty wrapper is drawn.
* back_url, back_label — a back link before the title (default label:
"Back"); back_target makes it an Unpoly link to that fragment.
* id, css_class — on the .
#}
{% macro page_header(title, subtitle=none, actions=none, back_url=none, back_label=none, back_target=none, id=none, css_class=none) -%}
{%- set body = caller() if caller is defined else (actions or "") -%}
{%- endmacro %}