We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9dadfd commit c9452dbCopy full SHA for c9452db
netbox/templates/dcim/device.html
@@ -31,7 +31,7 @@ <h5 class="card-header">{% trans "Device" %}</h5>
31
<td class="d-flex justify-content-between align-items-start">
32
{% if object.rack %}
33
{{ 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" %}">
+ <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" %}">
35
<i class="mdi mdi-view-day-outline"></i>
36
</a>
37
{% else %}
0 commit comments