Files
maddin 6fbd1bb3c2
CI / checks (push) Has been cancelled
chore: initialize public repository
2026-03-22 12:57:09 +00:00

39 lines
2.2 KiB
HTML

{% set is_auth_header = (not user) and (request.url.path.startswith('/login') or request.url.path.startswith('/register')) %}
<header class="site-header app-topbar {% if is_auth_header %}is-auth-header{% endif %}">
<div class="container app-topbar-inner {% if user %}is-user{% else %}is-guest{% endif %}">
<div class="app-brand-wrap">
<a class="brand app-brand"
href="{% if user %}{% if user.preferred_home_view == 'month' %}/month?view={{ user.preferred_month_view_mode or 'flat' }}{% else %}/dashboard{% endif %}{% else %}/{% endif %}"
aria-label="{{ app_name }} Startseite">
<img class="app-logo" src="/img/Logo.svg" alt="{{ app_name }}" />
</a>
{% if user %}
<div class="app-total-badges">
{% if header_vacation_visible is not defined or header_vacation_visible %}
<span class="app-total-badge app-total-badge-vacation"
title="Resturlaub / Gesamturlaubstage ({{ header_vacation_year }})">
<span class="app-total-badge__label">Urlaub</span>
<span class="app-total-badge__value">{{ header_vacation_days_remaining }}/{{ header_vacation_days_total }}</span>
</span>
{% endif %}
{% if header_workhours_counter_visible and header_workhours_counter_minutes is not none %}
<span class="app-total-badge app-total-badge-workhours"
title="Arbeitsstunden-Counter">
<span class="app-total-badge__label">Gesamt</span>
<span class="app-total-badge__value">{{ minutes_to_hhmm(header_workhours_counter_minutes) }}</span>
</span>
{% endif %}
{% if header_cumulative_minutes is not none %}
<span class="app-total-badge {% if header_cumulative_minutes < 0 %}is-negative{% else %}is-positive{% endif %}"
title="Kumulierte Überstunden">
<span class="app-total-badge__label">Stunden</span>
<span class="app-total-badge__value">{{ ('%.2f'|format(header_cumulative_minutes / 60) )|replace('.00', '') }}</span>
</span>
{% endif %}
</div>
{% endif %}
</div>
{% include "partials/nav.html" %}
</div>
</header>