diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html
index d3d6f03dc..68af0c08f 100644
--- a/netbox/templates/dcim/device.html
+++ b/netbox/templates/dcim/device.html
@@ -46,13 +46,7 @@
Rack |
-
- {% if object.rack %}
- {{ object.rack }}
- {% else %}
- {{ ''|placeholder }}
- {% endif %}
- |
+ {{ object.rack|linkify|placeholder }} |
Position |
@@ -161,9 +155,7 @@
Role |
-
- {{ object.device_role }}
- |
+ {{ object.device_role|linkify }} |
Platform |
@@ -173,7 +165,7 @@
Primary IPv4 |
{% if object.primary_ip4 %}
- {{ object.primary_ip4.address.ip }}
+ {{ object.primary_ip4.address.ip }}
{% if object.primary_ip4.nat_inside %}
(NAT for {{ object.primary_ip4.nat_inside.address.ip|linkify }})
{% elif object.primary_ip4.nat_outside %}
@@ -188,7 +180,7 @@
| Primary IPv6 |
{% if object.primary_ip6 %}
- {{ object.primary_ip6.address.ip }}
+ {{ object.primary_ip6.address.ip }}
{% if object.primary_ip6.nat_inside %}
(NAT for {{ object.primary_ip6.nat_inside.address.ip|linkify }})
{% elif object.primary_ip6.nat_outside %}
|