From 00a17c06c5a825d33dd3f2604ca35e0edd77f322 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 3 May 2024 10:49:06 -0400 Subject: [PATCH] Fixes #15944: Extend paginator template to be aware of placement --- netbox/templates/htmx/table.html | 2 +- netbox/templates/inc/paginator.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index f0eea84ef89..155e7f9c3e2 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -4,7 +4,7 @@ {% with preferences|get_key:"pagination.placement" as paginator_placement %} {% if paginator_placement == 'top' or paginator_placement == 'both' %} - {% include 'inc/paginator.html' with htmx=True table=table paginator=table.paginator page=table.page %} + {% include 'inc/paginator.html' with htmx=True table=table paginator=table.paginator page=table.page placement='top' %} {% endif %} {% render_table table 'inc/table_htmx.html' %} {% if paginator_placement != 'top' %} diff --git a/netbox/templates/inc/paginator.html b/netbox/templates/inc/paginator.html index bb27a2c8928..5c94d9569e9 100644 --- a/netbox/templates/inc/paginator.html +++ b/netbox/templates/inc/paginator.html @@ -3,7 +3,7 @@ {% if page %}