mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 01:35:32 +00:00
Personen DB Abfragen + Seiten
This commit is contained in:
21
views/routes/components/_reihe.gohtml
Normal file
21
views/routes/components/_reihe.gohtml
Normal file
@@ -0,0 +1,21 @@
|
||||
{{ $model := index . 0 }}
|
||||
{{ $r := index . 1 }}
|
||||
|
||||
|
||||
<a href="/reihe/{{ $r.MusenalmID }}">{{ $r.Title }}</a>
|
||||
<div>
|
||||
{{ Safe $r.Annotation }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $bds := index $model.relations $r.Id }}
|
||||
{{ if $bds }}
|
||||
{{ range $_, $rel := $bds }}
|
||||
{{ $bd := index $model.entries $rel.Entry }}
|
||||
{{ if $bd }}
|
||||
<div>
|
||||
<a href="/almanach/{{ $bd.MusenalmID }}">{{ $bd.Year }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user