mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 09:45:31 +00:00
Allerhand Kleinigkeiten; Einzelansichten Reihen u Personen; Bandansicht
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{ $model := . }}
|
||||
|
||||
{{- if and $model.letters (not $model.search) -}}
|
||||
<div id="personalphabet" class="flex flex-col text-xl pt-[4.875rem] pb-4 relative">
|
||||
<div id="personalphabet" class="flex flex-col text-xl pt-[5.875rem] pb-4 relative">
|
||||
{{- range $id, $r := .letters -}}
|
||||
<a
|
||||
class="{{ if not $model.letter -}}inactive{{- end -}}"
|
||||
|
||||
@@ -7,14 +7,16 @@
|
||||
{{ $isOrg := and $model.filter (eq $model.filter "org") }}
|
||||
|
||||
|
||||
<h1
|
||||
class="text-3xl font-bold px-3 relative -translate-y-[55%] w-min whitespace-nowrap bg-stone-50 ml-24 z-20">
|
||||
<span x-show="!search">
|
||||
{{- if $isPerson -}}
|
||||
Personen
|
||||
{{- else if $isOrg -}}
|
||||
Verlage, Druckereien & Vertriebe
|
||||
{{- end -}}
|
||||
</span>
|
||||
<span x-show="search"> Suche · Alle Personen & Körperschaften </span>
|
||||
</h1>
|
||||
<div>
|
||||
<h1
|
||||
class="text-3xl font-bold px-3 relative -translate-y-[55%] w-min whitespace-nowrap bg-stone-50 ml-24 z-20">
|
||||
<span x-show="!search">
|
||||
{{- if $isPerson -}}
|
||||
Personen
|
||||
{{- else if $isOrg -}}
|
||||
Verlage, Druckereien & Vertriebe
|
||||
{{- end -}}
|
||||
</span>
|
||||
<span x-show="search"> Suche · Alle Personen & Körperschaften </span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
91
views/routes/personen/components/notifier.gohtml
Normal file
91
views/routes/personen/components/notifier.gohtml
Normal file
@@ -0,0 +1,91 @@
|
||||
{{ $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")) }}
|
||||
|
||||
{{ $isProfession := and $model.filter (or (eq $model.filter "musik") (eq $model.filter "autor") (eq $model.filter "graphik") (eq $model.filter "hrsg")) }}
|
||||
|
||||
{{ $isNoOrg := and $model.filter (eq $model.filter "noorg") }}
|
||||
|
||||
{{ $isOrg := and $model.filter (eq $model.filter "org") }}
|
||||
|
||||
{{ $isMusik := and $model.filter (eq $model.filter "musik") }}
|
||||
|
||||
{{ $isAutor := and $model.filter (eq $model.filter "autor") }}
|
||||
|
||||
{{ $isGraphik := and $model.filter (eq $model.filter "graphik") }}
|
||||
|
||||
{{ $isHrsg := and $model.filter (eq $model.filter "hrsg") }}
|
||||
|
||||
|
||||
<div class="justify-self-start grow flex flex-row px-3 ml-6 mt-2 mr-2">
|
||||
{{ if .letter }}
|
||||
{{- if $isNoOrg -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Alle Personen</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- else if $isMusik -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Musiker:innen</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- else if $isAutor -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Autor:innen</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- else if $isGraphik -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Graphiker:innen</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- else if $isHrsg -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Herausgeber:innen</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- else if $isOrg -}}
|
||||
<div class="notifier" x-show="!search">
|
||||
<i class="ri-sort-alphabet-asc"></i>
|
||||
<span class="filtercategory">Verlage, Druckereien & Vertriebe</span> ·
|
||||
<span class="">Anfangsbuchstabe <span class="filterterm">{{ .letter }}</span></span>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
<div class="notifier" x-show="search">
|
||||
<i class="ri-search-line"></i>
|
||||
<span class="filtercategory">Suche</span>
|
||||
· <span class="filterterm" x-text="search"></span>
|
||||
</div>
|
||||
|
||||
{{ if .search }}
|
||||
<div class="notifier" x-show="search">
|
||||
<i class="ri-links-line"></i>
|
||||
<span class="filtercategory">Link</span>
|
||||
· <span class="filterterm" x-text="window.location.href"></span>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if or (not .letter) $isProfession }}
|
||||
<div class="notifier ml-2" x-show="!search">
|
||||
<a href="/personen/" class="no-underline">
|
||||
<i class="ri-arrow-left-long-line"></i> Alle Personen
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
<div class="notifier ml-2" x-show="search">
|
||||
<a href="/personen/" class="no-underline">
|
||||
<i class="ri-arrow-left-long-line"></i> Alle Personen
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user