From a504b17fd4ab6868d3ea069fcbe1f8028aa98e09 Mon Sep 17 00:00:00 2001 From: Arthur Date: Fri, 30 Sep 2022 16:48:00 -0700 Subject: [PATCH] 8424 highlight device --- netbox/dcim/views.py | 1 + netbox/templates/dcim/device.html | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index 7a6aecc8e..5930d6b2d 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -1616,6 +1616,7 @@ class DeviceView(generic.ObjectView): return { 'services': services, 'vc_members': vc_members, + 'svg_extra': f'highlight=id:{instance.pk}' } diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 5916f8b22..1ee898b0a 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -7,7 +7,7 @@ {% block content %}
-
+
Device @@ -152,7 +152,8 @@ {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% plugin_left_page object %} - +
+
Management
@@ -285,15 +286,14 @@
{% include 'inc/panels/contacts.html' %} {% include 'inc/panels/image_attachments.html' %} -
-
-
- -
+ +
+ +
{% if object.rack %}
@@ -310,6 +310,8 @@
{% endif %} + + {% plugin_right_page object %}