From 0bb2a051b60da35447a3dacdb9a771e5b98fecfc Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Thu, 15 Apr 2021 15:52:11 -0400 Subject: [PATCH] Fixes #6171: Fix display of horizontally-scrolling object lists --- docs/release-notes/version-2.11.md | 1 + netbox/templates/generic/object_list.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index 0e7bad118..569ea4942 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -28,6 +28,7 @@ * [#6124](https://github.com/netbox-community/netbox/issues/6124) - Location `parent` filter should return all child locations (not just those directly assigned) * [#6130](https://github.com/netbox-community/netbox/issues/6130) - Improve display of assigned models in custom fields list * [#6155](https://github.com/netbox-community/netbox/issues/6155) - Fix admin links for plugins, background tasks +* [#6171](https://github.com/netbox-community/netbox/issues/6171) - Fix display of horizontally-scrolling object lists --- diff --git a/netbox/templates/generic/object_list.html b/netbox/templates/generic/object_list.html index b3b9944bb..441589d27 100644 --- a/netbox/templates/generic/object_list.html +++ b/netbox/templates/generic/object_list.html @@ -29,7 +29,6 @@ {% block sidebar %}{% endblock %} {% endif %} -
{% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %} {% if permissions.change or permissions.delete %}
@@ -59,7 +58,9 @@
{% endif %} - {% render_table table 'inc/table.html' %} +
+ {% render_table table 'inc/table.html' %} +
{% block bulk_buttons %}{% endblock %} {% if bulk_edit_url and permissions.change %} @@ -78,7 +79,6 @@ {% render_table table 'inc/table.html' %} {% endif %} {% endwith %} -
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}