Files
myep/templates/admin/_partials/_header.html.twig
T

24 lines
1.3 KiB
Twig

{#
E&P header as in the apps template: logo, app name behind a thin line, a deep blue bar below.
Embed it and fill its blocks:
- `header_nav`: the main views as `.header-tab` links, for apps with few views (layout_tabs)
- `header_end`: season, user menu, help link and, in the sidebar layout, the menu button
`app_name` and `home_path` come from the embedding template; `header_width` lines the header up with
a centred content column (layout_sidebar), without it the header runs full width (layout_tabs).
#}
<header class="shrink-0 print:hidden">
<div class="border-b border-line bg-white">
<div class="flex items-stretch gap-x-6 text-sm {{ header_width ?? 'px-4' }}">
<a href="{{ home_path }}" class="flex shrink-0 items-center gap-3 py-2">
<img src="{{ asset('build/images/ep-logo.svg') }}" alt="E&P Reisen & Events" width="157" height="48" class="h-9 w-auto">
<span class="pl-3 border-l border-line font-black uppercase tracking-wide text-brand">{{ app_name }}</span>
</a>
{% block header_nav %}{% endblock %}
<div class="ml-auto flex items-stretch gap-x-4">
{% block header_end %}{% endblock %}
</div>
</div>
</div>
<div class="h-2 bg-brand" aria-hidden="true"></div>
</header>