diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index 203c0b434..5394a4aec 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -165,7 +165,7 @@
{% endif %}
@@ -276,9 +276,6 @@
{% if device_bays or device.device_type.is_parent_device %}
- {% if perms.dcim.add_devicebay %}
-
Add Device Bays
- {% endif %}
Device Bays
@@ -290,6 +287,14 @@
{% endfor %}
+ {% if perms.dcim.add_devicebay %}
+
+ {% endif %}
{% endif %}
{% if interfaces or device.device_type.is_network_device %}
@@ -308,10 +313,10 @@
{% if perms.dcim.add_interface %}
{% endif %}
@@ -319,9 +324,6 @@
{% if cs_ports or device.device_type.is_console_server %}
@@ -333,14 +335,19 @@
{% endfor %}
+ {% if perms.dcim.add_consoleserverport %}
+
+ {% endif %}
{% endif %}
{% if power_outlets or device.device_type.is_pdu %}
- {% if perms.dcim.add_poweroutlet %}
-
Add Power Outlets
- {% endif %}
Power Outlets
@@ -352,6 +359,14 @@
{% endfor %}
+ {% if perms.dcim.add_poweroutlet %}
+
+ {% endif %}
{% endif %}
diff --git a/netbox/templates/dcim/inc/_consoleport.html b/netbox/templates/dcim/inc/_consoleport.html
index 21eb39b18..96cdd6a6d 100644
--- a/netbox/templates/dcim/inc/_consoleport.html
+++ b/netbox/templates/dcim/inc/_consoleport.html
@@ -2,6 +2,7 @@
{{ cp.name }}
|
+ |
{% if cp.cs_port %}
{{ cp.cs_port.device }}
diff --git a/netbox/templates/dcim/inc/_interface.html b/netbox/templates/dcim/inc/_interface.html
index f1a2665ff..fc435ce98 100644
--- a/netbox/templates/dcim/inc/_interface.html
+++ b/netbox/templates/dcim/inc/_interface.html
@@ -5,27 +5,28 @@
{% endif %}
|
+
+ {{ iface.mac_address|default:'' }}
+ |
{% if not iface.is_physical %}
- Virtual |
+ Virtual |
{% elif iface.connection %}
{% with iface.get_connected_interface as connected_iface %}
{{ connected_iface.device }}
- ∷
+ |
+
{{ connected_iface }}
|
{% endwith %}
{% elif iface.circuit %}
-
+ |
{{ iface.circuit }}
|
{% else %}
- Not connected |
- {% endif %}
- {% if iface.mac_address %}
- {{ iface.mac_address }} |
- {% else %}
- 00:00:00:00:00:00 |
+
+ Not connected
+ |
{% endif %}
{% if iface.circuit or iface.connection %}
diff --git a/netbox/templates/dcim/inc/_powerport.html b/netbox/templates/dcim/inc/_powerport.html
index 1ef505530..bd0256b29 100644
--- a/netbox/templates/dcim/inc/_powerport.html
+++ b/netbox/templates/dcim/inc/_powerport.html
@@ -2,6 +2,7 @@
|
{{ pp.name }}
|
+ |
{% if pp.power_outlet %}
{{ pp.power_outlet.device }}
|