From 54cfbe039bdd2c0bda98f3f66b570786a0182d60 Mon Sep 17 00:00:00 2001 From: Friendica Date: Thu, 19 Apr 2018 19:47:12 +0000 Subject: [PATCH] Only shown pagination when not empty. Currenty the pagination bar is always shown, even when no prev/next buttons are active. This only shows the bar when actual navigation is possible. --- view/templates/paginate.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/templates/paginate.tpl b/view/templates/paginate.tpl index fcd580b071..ee9a1cc330 100644 --- a/view/templates/paginate.tpl +++ b/view/templates/paginate.tpl @@ -1,5 +1,5 @@ +{{if $pager && ($pager.prev || $pager.next)}}
- {{if $pager}} {{if $pager.prev}}{{$pager.prev.text}}{{/if}} {{if $pager.first}}{{$pager.first.text}}{{/if}} @@ -9,5 +9,5 @@ {{if $pager.last}} {{$pager.last.text}}{{/if}} {{if $pager.next}}{{$pager.next.text}}{{/if}} - {{/if}}
+{{/if}}