{# vars: title, subheading, breadcrumbs, header_actions, host, record (optional), eyebrow (optional), title_suffix (optional, e.g. an emoji), hero (optional: soft glow behind the header) #} {% import "tungsten/components/ui.html" as ui %}
{% if hero is defined and hero %} {% endif %}
{{ ui.breadcrumbs(breadcrumbs) }} {% if eyebrow %}

{{ eyebrow }}

{% endif %}

{{ title }}{% if title_suffix is defined and title_suffix %} {{ title_suffix }}{% endif %}

{% if subheading %}

{{ subheading }}

{% endif %}
{% set _hook_args = {'host': host, 'record': record if record is defined else None} %}
{% if ctx and ctx.panel %}{{ ctx.panel.hooks('page.header-actions.before', ctx, **_hook_args) }}{% endif %} {% for a in header_actions or [] %}{{ a.render(ctx, host, record if record is defined else None, style=(None if a._style or a.__class__.__name__ == 'ActionGroup' else 'button')) }}{% endfor %} {% if extra_actions is defined %}{{ extra_actions }}{% endif %} {% if ctx and ctx.panel %}{{ ctx.panel.hooks('page.header-actions.after', ctx, **_hook_args) }}{% endif %}
{% if ctx and ctx.request and ctx.request.query_params.get('action') %} {#- ?action= opens that action's modal as the page loads -#} {{ open_action_from_url(ctx, host, header_actions or [], _hook_args.record) }} {% if table is defined and table and table.host is defined %}{{ open_action_from_url(ctx, table.host, table._header_actions, None, table_id=table.id) }}{% endif %} {% endif %}