{# ── Unified Header (Notion-inspired) ── Parameters available in calling context: breadcrumb_items: list of {label: str, url: str|None} — last item = current page page_icon: str — emoji icon right_actions: str — raw HTML for right-side action buttons hamburger_click: str — Alpine expression for hamburger button (default: opens sidebar) hide_hamburger: bool — if truthy, hides the hamburger button #}
{% if not hide_hamburger %} {% endif %}
{% if page_icon %} {{ page_icon }} {% endif %} {% if breadcrumb_items %} {% for item in breadcrumb_items %} {% if item.url and not loop.last %} {{ item.label }} / {% elif loop.last %} {{ item.label }} {% else %} {{ item.label }} / {% endif %} {% endfor %} {% else %} {{ page_title|default('FlowDeck') }} {% endif %}
{{ right_actions|safe if right_actions else '' }}