diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 477953a97..d2d8fe309 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -532,6 +532,10 @@ {% for iface in interfaces %} {% include 'dcim/inc/interface.html' %} + {% empty %} + + — No interfaces defined — + {% endfor %} @@ -592,6 +596,10 @@ {% for frontport in frontports %} {% include 'dcim/inc/frontport.html' %} + {% empty %} + + — No front ports defined — + {% endfor %} @@ -649,6 +657,10 @@ {% for rearport in rearports %} {% include 'dcim/inc/rearport.html' %} + {% empty %} + + — No rear ports defined — + {% endfor %} @@ -704,6 +716,10 @@ {% for cp in consoleports %} {% include 'dcim/inc/consoleport.html' %} + {% empty %} + + — No console ports defined — + {% endfor %}