Link name of interface to the respective interface

This change allows to jump directly to the connected interface (i.e. the "other side of the connected cable") from an entry in the device's interfaces. This implements #2432.
This commit is contained in:
Tomáš Pospíšek 2018-09-15 18:59:11 +02:00 committed by GitHub
parent b97597c645
commit 0fcbd64afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,9 @@
<a href="{% url 'dcim:device' pk=connected_iface.device.pk %}">{{ connected_iface.device }}</a>
</td>
<td>
<span title="{{ connected_iface.get_form_factor_display }}">{{ connected_iface }}</span>
<span title="{{ connected_iface.get_form_factor_display }}">
<a href="https://netbox.ms.shkb/dcim/interfaces/{{ connected_iface.id }}/edit/">{{ connected_iface }}</a>
</span>
</td>
{% endwith %}
{% elif iface.circuit_termination %}