diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 62683930b..14d5b0869 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -237,16 +237,14 @@ {% for pp in power_ports %} {% include 'dcim/inc/_powerport.html' %} {% empty %} - {% if not device.device_type.is_pdu %} - - - No power ports defined - {% if perms.dcim.add_powerport %} - - {% endif %} - - - {% endif %} + + + No power ports defined + {% if perms.dcim.add_powerport %} + + {% endif %} + + {% endfor %} {% if perms.dcim.add_interface or perms.dcim.add_consoleport or perms.dcim.add_powerport %} @@ -261,7 +259,7 @@ Add console port {% endif %} - {% if perms.dcim.add_powerport and not device.device_type.is_pdu %} + {% if perms.dcim.add_powerport %} Add power port