diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c905ac82..bbc53e4d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ v2.5.4 (FUTURE) * [#2779](https://github.com/digitalocean/netbox/issues/2779) - Include "none" option when filter IP addresses by role * [#2783](https://github.com/digitalocean/netbox/issues/2783) - Fix AttributeError exception when attempting to delete region(s) +* [#2795](https://github.com/digitalocean/netbox/issues/2795) - Fix duplicate display of pagination controls on child prefix/IP tables * [#2798](https://github.com/digitalocean/netbox/issues/2798) - Properly URL-encode "map it" link on site view --- diff --git a/netbox/templates/extras/tag.html b/netbox/templates/extras/tag.html index aceb0ca94..748cad0bf 100644 --- a/netbox/templates/extras/tag.html +++ b/netbox/templates/extras/tag.html @@ -64,6 +64,7 @@
{% include 'panel_table.html' with table=items_table heading='Tagged Objects' %} + {% include 'inc/paginator.html' with paginator=items_table.paginator page=items_table.page %}
{% endblock %} diff --git a/netbox/templates/panel_table.html b/netbox/templates/panel_table.html index 26e623675..18958512d 100644 --- a/netbox/templates/panel_table.html +++ b/netbox/templates/panel_table.html @@ -12,9 +12,3 @@
None
{% endif %} - -{% if table.rows and not hide_paginator %} - {% with paginator=table.paginator page=table.page %} - {% include 'inc/paginator.html' %} - {% endwith %} -{% endif %} diff --git a/netbox/templates/search.html b/netbox/templates/search.html index 36c0fb5ad..6388cc022 100644 --- a/netbox/templates/search.html +++ b/netbox/templates/search.html @@ -12,7 +12,7 @@
{% for obj_type in results %}

{{ obj_type.name|bettertitle }}

- {% include 'panel_table.html' with table=obj_type.table hide_paginator=True %} + {% include 'panel_table.html' with table=obj_type.table %} {% if obj_type.table.page.has_next %}