mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Some small tings
This commit is contained in:
@@ -141,12 +141,13 @@
|
|||||||
{{- template "_fieldscript" -}}
|
{{- template "_fieldscript" -}}
|
||||||
{{- if $model.parameters.IsBeitraegeSearch -}}
|
{{- if $model.parameters.IsBeitraegeSearch -}}
|
||||||
<div class="cotents" id="searchresults">
|
<div class="cotents" id="searchresults">
|
||||||
{{- if $model.result.Hits -}}
|
{{- $isFiltered := or $model.filters.Agent $model.filters.Year $model.filters.Type -}}
|
||||||
|
{{- if and $model.result.Hits (not $isFiltered) -}}
|
||||||
{{ template "_filterlist" $model }}
|
{{ template "_filterlist" $model }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<div class="container-normal" id="subresults">
|
<div class="container-normal flex flex-col h-full" id="subresults">
|
||||||
{{ template "tablehead" $model }}
|
{{ template "tablehead" $model }}
|
||||||
{{ template "pills" $model }}
|
{{ template "pills" $model }}
|
||||||
{{- if $model.result.Hits -}}
|
{{- if $model.result.Hits -}}
|
||||||
@@ -177,10 +178,13 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if $model.result.Hits -}}
|
||||||
<div class="flex flex-row justify-end items-start border-t border-zinc-300 pt-4">
|
<div class="flex flex-row justify-end items-start border-t border-zinc-300 pt-4">
|
||||||
{{- template "pagination" $model -}}
|
{{- template "pagination" $model -}}
|
||||||
</div>
|
</div>
|
||||||
|
{{- else -}}
|
||||||
|
<div class="mt-4">Kein Beitrag gefunden.</div>
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
{{ if gt $model.parameters.Page 1 -}}
|
{{ if gt $model.parameters.Page 1 -}}
|
||||||
<a
|
<a
|
||||||
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Prev }}"
|
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Prev }}"
|
||||||
class="mr-1.5">
|
class="mr-1.5 text-stone-500 hover:text-slate-900">
|
||||||
<i class="ri-arrow-left-long-line"></i>
|
<i class="ri-arrow-left-long-line"></i>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
{{ if lt $model.parameters.Page ($model.result.PagesCount) -}}
|
{{ if lt $model.parameters.Page ($model.result.PagesCount) -}}
|
||||||
<a
|
<a
|
||||||
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Next }}"
|
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Next }}"
|
||||||
class="ml-1.5">
|
class="ml-1.5 text-stone-500 hover:text-slate-900">
|
||||||
<i class="ri-arrow-right-long-line"></i>
|
<i class="ri-arrow-right-long-line"></i>
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user