mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-28 16:55:32 +00:00
50 lines
1.0 KiB
Plaintext
50 lines
1.0 KiB
Plaintext
{{ $model := . }}
|
|
|
|
|
|
<nav>
|
|
{{- range $y := .years -}}
|
|
<a
|
|
class="inline-block stdlink px-0.5"
|
|
href="/jahrgang/{{ $y }}"
|
|
{{ if eq $model.year $y -}}aria-current="page"{{- end }}
|
|
>{{ $y }}</a
|
|
>
|
|
{{- end -}}
|
|
<a
|
|
class="inline-block stdlink px-0.5"
|
|
href="/jahrgang/all"
|
|
{{ if .all -}}aria-current="page"{{- end }}
|
|
>Alle</a
|
|
>
|
|
</nav>
|
|
|
|
{{- if .years -}}
|
|
{{- if .year -}}
|
|
{{- $letters := index $model.yearmap $model.year -}}
|
|
<div class="flex flex-row gap-x-1">
|
|
<div>{{- .year }}</div>
|
|
<div>({{- len $letters }})</div>
|
|
</div>
|
|
{{ range $l := $letters -}}
|
|
<a href="/brief/{{ $l.Letter }}" class="">
|
|
{{- template "_letterhead" $l -}}
|
|
</a>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- if .all -}}
|
|
{{- range $y := .years -}}
|
|
<div>
|
|
{{- $y -}}
|
|
{{- $letters := index $model.yearmap $y -}}
|
|
{{- len $letters }}
|
|
{{ range $l := $letters -}}
|
|
<a href="/brief/{{ $l.Letter }}" class="">
|
|
{{- template "_letterhead" $l -}}
|
|
</a>
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|