From 1402d267271104946cc54fc9e3dd20749da29b67 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 28 Aug 2023 15:47:04 -0400 Subject: [PATCH] Clean up location and device tables --- netbox/templates/dcim/location.html | 39 ++++++++------- netbox/templates/dcim/site.html | 73 +++++------------------------ 2 files changed, 34 insertions(+), 78 deletions(-) diff --git a/netbox/templates/dcim/location.html b/netbox/templates/dcim/location.html index dae6d78ff..48700588a 100644 --- a/netbox/templates/dcim/location.html +++ b/netbox/templates/dcim/location.html @@ -71,30 +71,33 @@
-
-
- Non-Racked Devices -
-
- - {% if perms.dcim.add_device %} - - {% endif %} -
Child Locations
+ {% if perms.dcim.add_location %} + + {% endif %} +
+
+
Non-Racked Devices
+
+ {% if perms.dcim.add_device %} + + {% endif %}
{% plugin_full_width_page object %}
diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index 1d57de19b..e0f44261f 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -131,49 +131,6 @@
{% include 'inc/panels/related_objects.html' with filter_name='site_id' %} -
-
Locations
-
- {% if locations %} - - - - - - - - {% for location in locations %} - - - - - - - {% endfor %} -
LocationRacksDevices
- {% for i in location.level|as_range %}{% endfor %} - {{ location|linkify }} - - {{ location.rack_count }} - - {{ location.device_count }} - - - - -
- {% else %} - None - {% endif %} -
- {% if perms.dcim.add_location %} - - {% endif %} -
{% include 'inc/panels/image_attachments.html' %} {% plugin_right_page object %}
@@ -189,28 +146,24 @@ {% if perms.dcim.add_location %} {% endif %}
-
- Non-Racked Devices -
-
- - {% if perms.dcim.add_device %} - - {% endif %} +
Non-Racked Devices
+
+ {% if perms.dcim.add_device %} + + {% endif %}
{% plugin_full_width_page object %}