mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 01:35:32 +00:00
Personenliste fertig
This commit is contained in:
18
views/routes/personen/components/alphabet.gohtml
Normal file
18
views/routes/personen/components/alphabet.gohtml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ $model := . }}
|
||||
|
||||
{{- if and $model.letters (not $model.search) -}}
|
||||
<div id="personalphabet" class="flex flex-col text-xl pt-20 relative">
|
||||
{{- range $id, $r := .letters -}}
|
||||
<a
|
||||
class="{{ if not $model.letter -}}inactive{{- end -}}"
|
||||
:class="search ? 'inactive' : 'active'"
|
||||
href="?letter={{ $r }}{{- if $model.filter }}&filter={{ $model.filter }}{{- end -}}"
|
||||
{{ if eq $model.letter $r }}aria-current="page"{{ end }}
|
||||
hx-select="main"
|
||||
hx-target="main"
|
||||
hx-swap="outerHTML scroll:#pageheading:top"
|
||||
>{{ $r }}</a
|
||||
>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user