{# Macro page_header Uso: {% from "core/components/page_header.html" import page_header %} {% call page_header(title="Apps", subtitle="12 activas", icon="layout-dashboard", meta=[{"icon": "clock", "label": "Actualizado hace 2 h"}]) %} Crear {% endcall %} icon → nombre del registro de iconos; pinta un icon_tile a la izquierda. tone → tono del tile (neutral por defecto: el acento queda para acciones). meta → chips bajo el subtítulo; cada item es {"icon", "label"} o un texto. eyebrow → texto corto sobre el título (sección o contexto). El bloque `call` se pinta como zona de acciones a la derecha. #} {% from "core/components/icon.html" import icon as _icon, icon_tile as _icon_tile %} {% macro page_header(title, subtitle="", breadcrumbs=[], icon=none, tone="neutral", meta=[], eyebrow="") %}
{%- if icon %} {{ _icon_tile(icon, tone=tone, size="md") }} {%- endif %}
{%- if breadcrumbs %} {%- endif %} {%- if eyebrow %} {{ eyebrow }} {%- endif %}

{{ title }}

{%- if subtitle %}

{{ subtitle }}

{%- endif %} {%- if meta %}
{%- for item in meta %} {%- if item is mapping %} {% if item.icon %}{{ _icon(item.icon, class="dg-meta-chip-icon") }}{% endif %}{{ item.label }} {%- else %} {{ item }} {%- endif %} {%- endfor %}
{%- endif %}
{%- if caller is defined %}
{{ caller() }}
{%- endif %}
{%- endmacro %}