{# Page-header card. Common shape across every detail page: - back-breadcrumb on its own row - ui-surface card with title + optional caption row of chips Two macros: - back_link(href, label) - the small breadcrumb row - header_card(title, caption=None) - the white card with title Both are usable independently; pair them for the full pattern. Parameters (back_link): - href (str) URL of the parent listing - label (str) link text (eg. "Opportunities", "Failures") Parameters (header_card): - title (str) page title (can be safe HTML for code wrapping) - caption (str, optional) sub-line shown under the title Use as ``{% call header_card(title=...) %}{% endcall %}`` when the page wants custom chip markup under the title; the body of the call replaces the default caption row. #} {%- macro back_link(href, label) -%}
← {{ label }}
{%- endmacro %} {%- macro header_card(title, caption=None) -%}

{{ title }}

{%- if caller is defined %}
{{ caller() }}
{%- elif caption %}
{{ caption }}
{%- endif %}
{%- endmacro %}