From 3699f16848b85e25c624e81e9074a0c2b8a8de54 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 15 Dec 2021 09:46:59 -0500 Subject: [PATCH] Show per-page selector only when results are present --- netbox/templates/inc/paginator.html | 24 ++++++++--------- netbox/templates/inc/paginator_htmx.html | 34 ++++++++++++------------ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/netbox/templates/inc/paginator.html b/netbox/templates/inc/paginator.html index eb349ead5..112bd7464 100644 --- a/netbox/templates/inc/paginator.html +++ b/netbox/templates/inc/paginator.html @@ -31,19 +31,19 @@
{# Per-page count selector #} - {% if page %} + Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }} diff --git a/netbox/templates/inc/paginator_htmx.html b/netbox/templates/inc/paginator_htmx.html index c78361490..e96dac858 100644 --- a/netbox/templates/inc/paginator_htmx.html +++ b/netbox/templates/inc/paginator_htmx.html @@ -46,24 +46,24 @@
{# Per-page count selector #} - {% if page %} + Showing {{ page.start_index }}-{{ page.end_index }} of {{ page.paginator.count }}