Skip to content

Commit

Permalink
16819 highlight parent device in rack (#16881)
Browse files Browse the repository at this point in the history
* 16819 highlight parent device in rack

* 16819 review changes
  • Loading branch information
arthanson authored Jul 15, 2024
1 parent e216beb commit dde77c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/dcim/device.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h5 class="card-header">{% trans "Device" %}</h5>
<td class="d-flex justify-content-between align-items-start">
{% if object.rack %}
{{ object.rack|linkify }}
<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" %}">
<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" %}">
<i class="mdi mdi-view-day-outline"></i>
</a>
{% else %}
Expand Down

0 comments on commit dde77c8

Please sign in to comment.