{#- chirp-ui: Document header Document-oriented header for editor/viewer surfaces inside workspaces. Usage: {% from "chirpui/document_header.html" import document_header %} {% call document_header("README.md", path="docs/README.md", status="Draft") %} {% slot actions %}{% end %} {% end %} -#} {% from "chirpui/layout.html" import page_header %} {% def document_header(title, subtitle=none, meta=none, breadcrumb_items=none, eyebrow=none, path=none, provenance=none, status=none, meta_items=none, cls="") %}
{% if eyebrow %}

{{ eyebrow }}

{% end %} {% call page_header(title, subtitle=subtitle, meta=meta, breadcrumb_items=breadcrumb_items, cls="chirpui-document-header__page-header") %} {% slot actions %}{% slot actions %}{% end %} {% end %} {% if path or provenance or status or meta_items %}
{% if path %} {{ path }} {% end %} {% if provenance %} {{ provenance }} {% end %} {% if status %} {{ status }} {% end %} {% if meta_items %} {% for item in meta_items %} {{ item }} {% end %} {% end %}
{% end %}
{% end %}