mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 01:35:32 +00:00
Refactored Series List
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div
|
||||
class="hidden lg:flex min-w-[32rem] max-w-[32rem] float-right ml-6 flex-col gap-y-8 [&>*]:pb-12
|
||||
[&>*]:px-12 [&>*]:pt-8 [&>*]:bg-slate-100">
|
||||
{{ if .agents }}
|
||||
{{ if $model.common.Agents }}
|
||||
<div class="">
|
||||
<h2 class="mb-6">Herausgeber:innen, Verlage & Druckereien</h2>
|
||||
<filter-list
|
||||
@@ -13,7 +13,7 @@
|
||||
<script type="module">
|
||||
let agentList = document.getElementById("agent-list");
|
||||
if (agentList) {
|
||||
agentList.items = {{ .agents }};
|
||||
agentList.items = {{ $model.common.Agents }};
|
||||
|
||||
agentList.setSearchTextFunc((item) => {
|
||||
return item.name;
|
||||
@@ -31,7 +31,7 @@
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .places }}
|
||||
{{ if $model.common.Places }}
|
||||
<div>
|
||||
<h2 class="mb-6">Erscheinungsorte</h2>
|
||||
<filter-list
|
||||
@@ -41,11 +41,11 @@
|
||||
</div>
|
||||
<script type="module">
|
||||
let placeList = document.getElementById("place-list");
|
||||
if (placeList) placeList.items = {{ .places }};
|
||||
if (placeList) placeList.items = {{ $model.common.Places }};
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .years }}
|
||||
{{ if $model.common.Years }}
|
||||
<div>
|
||||
<h2 class="mb-6">Geltungsjahre</h2>
|
||||
<filter-list
|
||||
@@ -57,7 +57,7 @@
|
||||
<script type="module">
|
||||
let yearList = document.getElementById("year-list");
|
||||
if (yearList) {
|
||||
yearList.items = {{ .years }};
|
||||
yearList.items = {{ $model.common.Years }};
|
||||
|
||||
yearList.setHREFFunc((item) => {
|
||||
return String(item);
|
||||
|
||||
Reference in New Issue
Block a user