From: Friendica Date: Thu, 19 Apr 2018 19:47:12 +0000 (+0000) Subject: Only shown pagination when not empty. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54cfbe039bdd2c0bda98f3f66b570786a0182d60;p=friendica.git 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. --- 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}}