diff --git a/netbox/templates/dcim/inc/device_header.html b/netbox/templates/dcim/inc/device_header.html
index 73b5845ef..92acd297d 100644
--- a/netbox/templates/dcim/inc/device_header.html
+++ b/netbox/templates/dcim/inc/device_header.html
@@ -43,17 +43,23 @@
{{ device }}
{% include 'inc/created_updated.html' with obj=device %}
- - Info
- - Inventory
+ -
+ Info
+
+ -
+ Inventory
+
{% if perms.dcim.napalm_read %}
- {% if device.status == 1 and device.platform.napalm_driver and device.primary_ip %}
- - Status
- - LLDP Neighbors
- - Configuration
+ {% if device.status != 1 %}
+ {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='Device must be in active status' %}
+ {% elif not device.platform %}
+ {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No platform assigned to this device' %}
+ {% elif not device.platform.napalm_driver %}
+ {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No NAPALM driver assigned for this platform' %}
+ {% elif not device.primary_ip %}
+ {% include 'dcim/inc/device_napalm_tabs.html' with disabled_message='No primary IP address assigned to this device' %}
{% else %}
- - Status
- - LLDP Neighbors
- - Configuration
+ {% include 'dcim/inc/device_napalm_tabs.html' %}
{% endif %}
{% endif %}
diff --git a/netbox/templates/dcim/inc/device_napalm_tabs.html b/netbox/templates/dcim/inc/device_napalm_tabs.html
new file mode 100644
index 000000000..073f2fb9b
--- /dev/null
+++ b/netbox/templates/dcim/inc/device_napalm_tabs.html
@@ -0,0 +1,15 @@
+{% if not disabled_message %}
+
+ Status
+
+
+ LLDP Neighbors
+
+
+ Configuration
+
+{% else %}
+ Status
+ LLDP Neighbors
+ Configuration
+{% endif %}