From 7c109ffd8cb6e9c76c440263568fb7194519e491 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 11 Jul 2022 11:02:18 -0400 Subject: [PATCH] Fixes #9697: Fix device role link under device view --- netbox/templates/dcim/device.html | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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 %}