mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-28 16:55:32 +00:00
Some small tings
This commit is contained in:
@@ -141,12 +141,13 @@
|
||||
{{- template "_fieldscript" -}}
|
||||
{{- if $model.parameters.IsBeitraegeSearch -}}
|
||||
<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 }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
<div class="container-normal" id="subresults">
|
||||
<div class="container-normal flex flex-col h-full" id="subresults">
|
||||
{{ template "tablehead" $model }}
|
||||
{{ template "pills" $model }}
|
||||
{{- if $model.result.Hits -}}
|
||||
@@ -177,10 +178,13 @@
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
|
||||
<div class="flex flex-row justify-end items-start border-t border-zinc-300 pt-4">
|
||||
{{- template "pagination" $model -}}
|
||||
</div>
|
||||
{{- if $model.result.Hits -}}
|
||||
<div class="flex flex-row justify-end items-start border-t border-zinc-300 pt-4">
|
||||
{{- template "pagination" $model -}}
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div class="mt-4">Kein Beitrag gefunden.</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ if gt $model.parameters.Page 1 -}}
|
||||
<a
|
||||
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>
|
||||
</a>
|
||||
{{- end -}}
|
||||
@@ -13,7 +13,7 @@
|
||||
{{ if lt $model.parameters.Page ($model.result.PagesCount) -}}
|
||||
<a
|
||||
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>
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user