1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #4434: Enable highlighting devices within rack elevations

This commit is contained in:
jeremystretch
2022-06-24 11:04:38 -04:00
parent f9d81fd362
commit fc02e15fb1
10 changed files with 77 additions and 26 deletions

View File

@@ -49,6 +49,11 @@
<td>
{% if object.rack %}
<a href="{% url 'dcim:rack' pk=object.rack.pk %}">{{ object.rack }}</a>
<div class="float-end noprint">
<a href="{% url 'dcim:rack' pk=object.rack.pk %}?device={{ object.pk }}" class="btn btn-primary btn-sm" title="Highlight device">
<i class="mdi mdi-view-day-outline"></i>
</a>
</div>
{% else %}
{{ ''|placeholder }}
{% endif %}