Skip to content

Commit c9452db

Browse files
arthansonjeremystretch
authored andcommitted
16819 highlight parent device in rack (#16881)
* 16819 highlight parent device in rack * 16819 review changes
1 parent a9dadfd commit c9452db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/dcim/device.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h5 class="card-header">{% trans "Device" %}</h5>
3131
<td class="d-flex justify-content-between align-items-start">
3232
{% if object.rack %}
3333
{{ object.rack|linkify }}
34-
<a href="{{ object.rack.get_absolute_url }}?device={{ object.pk }}" class="btn btn-primary btn-sm d-print-none" title="{% trans "Highlight device in rack" %}">
34+
<a href="{{ object.rack.get_absolute_url }}?device={% firstof object.parent_bay.device.pk object.pk %}" class="btn btn-primary btn-sm d-print-none" title="{% trans "Highlight device in rack" %}">
3535
<i class="mdi mdi-view-day-outline"></i>
3636
</a>
3737
{% else %}

0 commit comments

Comments
 (0)