mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
{{ $model := .model }}
|
|
{{ $date := .model.Datum.When }}
|
|
<div class="sticky top-4 bg-white border border-slate-200 rounded-lg p-4 mb-6 z-10">
|
|
<!-- Header with year link left, nav buttons right -->
|
|
<div class="flex items-center justify-between mb-3">
|
|
<a href="/jahrgang/{{- $date.Year -}}"
|
|
class="inline-flex items-center gap-1 text-blue-600 hover:text-blue-800 text-base font-medium">
|
|
<i class="ri-calendar-line"></i>
|
|
{{ $date.Year }}
|
|
</a>
|
|
|
|
<div class="flex flex-row gap-x-1">
|
|
{{ if $model.Prev }}
|
|
<a href="/{{- $model.Prev.Datum.When.Year -}}/{{- $model.Prev.Number.No -}}"
|
|
class="inline-flex items-center justify-center w-7 h-7 bg-slate-100 text-slate-700 rounded hover:bg-slate-200 transition-colors">
|
|
<i class="ri-arrow-left-line text-sm"></i>
|
|
</a>
|
|
{{ end }}
|
|
|
|
{{ if $model.Next }}
|
|
<a href="/{{- $model.Next.Datum.When.Year -}}/{{- $model.Next.Number.No -}}"
|
|
class="inline-flex items-center justify-center w-7 h-7 bg-slate-100 text-slate-700 rounded hover:bg-slate-200 transition-colors">
|
|
<i class="ri-arrow-right-line text-sm"></i>
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Issue title and date -->
|
|
<div class="border-t border-slate-200 pt-3">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center gap-1">
|
|
<i class="ri-newspaper-line text-lg text-slate-600"></i>
|
|
<h1 class="text-lg font-semibold text-slate-800">{{ $date.Year }} / {{ $model.Number.No }}</h1>
|
|
</div>
|
|
<div class="text-base font-medium text-slate-700 bg-slate-100 px-2 py-1 rounded">{{ printf "%.2s" (WeekdayName $date.Weekday) }} {{ $date.Day }}.{{ $date.Month }}.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|