mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 09:45:31 +00:00
BUGFIX: Paginierung Bände
This commit is contained in:
@@ -229,7 +229,7 @@
|
||||
|
||||
{{- if $model.result.Hits -}}
|
||||
<div class="flex flex-row justify-end items-start border-t border-zinc-300 pt-4">
|
||||
{{- template "pagination" $model -}}
|
||||
{{- template "_pagination" Arr $model "beitraege" -}}
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div class="mt-4">Kein Beitrag gefunden.</div>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
{{ $model := . }}
|
||||
{{- if gt (len $model.result.Pages) 1 }}
|
||||
<div class="[&>_a]:no-underline">
|
||||
{{ if gt $model.parameters.Page 1 -}}
|
||||
<a
|
||||
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Prev }}"
|
||||
hx-indicator="body"
|
||||
class="mr-1.5 text-stone-500 hover:text-slate-900">
|
||||
<i class="ri-arrow-left-long-line"></i>
|
||||
</a>
|
||||
{{- end -}}
|
||||
Seite
|
||||
<b>{{ $model.parameters.Page }} / {{ $model.result.PagesCount }}</b>
|
||||
{{ if lt $model.parameters.Page ($model.result.PagesCount) -}}
|
||||
<a
|
||||
href="{{- $model.parameters.ToQueryParamsBeitraege -}}&page={{ $model.parameters.Next }}"
|
||||
hx-indicator="body"
|
||||
class="ml-1.5 text-stone-500 hover:text-slate-900">
|
||||
<i class="ri-arrow-right-long-line"></i>
|
||||
</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
@@ -49,7 +49,7 @@
|
||||
{{- if gt (len $model.result.Pages) 1 }}
|
||||
<div>·</div>
|
||||
{{- end -}}
|
||||
{{ template "pagination" $model }}
|
||||
{{ template "_pagination" Arr $model "beitraege" }}
|
||||
</div>
|
||||
|
||||
{{- if not $isAlm -}}
|
||||
|
||||
Reference in New Issue
Block a user