From a742f2ebfd6a06d8da11910d8c7fcfbc5122328c Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 1 Feb 2024 20:26:12 -0500 Subject: [PATCH] Refactor HTMX properties for tables --- netbox/templates/inc/paginator.html | 35 ++++++++-------------------- netbox/templates/inc/table_htmx.html | 10 ++++---- 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/netbox/templates/inc/paginator.html b/netbox/templates/inc/paginator.html index de6801276..bb27a2c89 100644 --- a/netbox/templates/inc/paginator.html +++ b/netbox/templates/inc/paginator.html @@ -2,7 +2,12 @@ {% load i18n %} {% if page %} -
+
{# Pages carousel #} {% if paginator.num_pages > 1 %} @@ -13,12 +18,7 @@ {% if page.has_previous %}
  • {% if htmx %} - + {% else %} @@ -34,12 +34,7 @@ {% for p in page.smart_pages %}
  • {% if p and htmx %} - + {{ p }} {% elif p %} @@ -57,12 +52,7 @@ {% if page.has_next %}
  • {% if htmx %} - + {% else %} @@ -97,12 +87,7 @@