mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 09:15:33 +00:00
26 lines
774 B
Plaintext
26 lines
774 B
Plaintext
{{ $model := . }}
|
|
|
|
{{ $isPerson := and $model.filter (or (eq $model.filter "noorg") (eq $model.filter "musik") (eq $model.filter "autor") (eq $model.filter "graphik") (eq $model.filter "hrsg")) }}
|
|
|
|
{{ $isOrg := and $model.filter (eq $model.filter "org") }}
|
|
|
|
{{- if not $model.search -}}
|
|
{{/* INFO: We always redrect to letter = A bc some letters dont exist for other types */}}
|
|
<div
|
|
id="persontype"
|
|
class="flex flex-row justify-end align-right text-right mr-4 gap-x-3"
|
|
:class="search ? 'inactive' : ''">
|
|
<a
|
|
href="/personen?letter=A"
|
|
{{ if $isPerson -}}aria-current="page"{{- end -}}
|
|
>Personen</a
|
|
>
|
|
|
|
<a
|
|
href="/personen?filter=org"
|
|
{{ if $isOrg -}}aria-current="page"{{- end -}}
|
|
>Verlage, Druckereien & Vertriebe</a
|
|
>
|
|
</div>
|
|
{{- end -}}
|