diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 1e531d5f0..5bfb70cd3 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -335,7 +335,7 @@
Device Bays
- {% if perms.dcim.change_devicebay %} + {% if perms.dcim.change_devicebay and device_bays|length > 1 %} @@ -387,7 +387,7 @@
Interfaces
- {% if perms.dcim.change_interface %} + {% if perms.dcim.change_interface and interfaces|length > 1 %} @@ -444,7 +444,7 @@
Console Server Ports
- {% if perms.dcim.change_consoleserverport %} + {% if perms.dcim.change_consoleserverport and cs_ports|length > 1 %} @@ -496,7 +496,7 @@
Power Outlets
- {% if perms.dcim.change_poweroutlet %} + {% if perms.dcim.change_poweroutlet and cs_ports|length > 1 %} diff --git a/netbox/templates/dcim/inc/devicetype_component_table.html b/netbox/templates/dcim/inc/devicetype_component_table.html index 9954fec23..00ed12b5a 100644 --- a/netbox/templates/dcim/inc/devicetype_component_table.html +++ b/netbox/templates/dcim/inc/devicetype_component_table.html @@ -6,7 +6,7 @@
{{ title }}
- {% if table.rows|length > 3 %} + {% if table.rows|length > 1 %}