mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-28 16:55:32 +00:00
40 lines
879 B
Plaintext
40 lines
879 B
Plaintext
{{ $model := . }}
|
|
|
|
|
|
<div>
|
|
{{- range $y := .years -}}
|
|
<a class="inline-block px-0.5" href="/{{ $y }}">{{ $y }}</a>
|
|
{{- end -}}
|
|
<a class="inline-block px-0.5" href="/all">Alle</a>
|
|
</div>
|
|
|
|
{{- 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 -}}
|