diff --git a/views/routes/suche/beitraege/body.gohtml b/views/routes/suche/beitraege/body.gohtml index 7acd368..9fb8c16 100644 --- a/views/routes/suche/beitraege/body.gohtml +++ b/views/routes/suche/beitraege/body.gohtml @@ -141,12 +141,13 @@ {{- template "_fieldscript" -}} {{- if $model.parameters.IsBeitraegeSearch -}}
- {{- 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 -}} -
+
{{ template "tablehead" $model }} {{ template "pills" $model }} {{- if $model.result.Hits -}} @@ -177,10 +178,13 @@
{{- end -}} - -
- {{- template "pagination" $model -}} -
+ {{- if $model.result.Hits -}} +
+ {{- template "pagination" $model -}} +
+ {{- else -}} +
Kein Beitrag gefunden.
+ {{- end -}}