mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Linkify connected object
This commit is contained in:
parent
96759af86f
commit
cd64fcac8d
@ -55,13 +55,8 @@
|
|||||||
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
{% with peer=termination.get_cable_peer %}
|
{% with peer=termination.get_cable_peer %}
|
||||||
to
|
to <a href="{{ peer.parent_object.get_absolute_url }}">{{ peer.parent_object }}</a>
|
||||||
{% if peer.device %}
|
/ {% if peer.get_absolute_url %}<a href="{{ peer.get_absolute_url }}">{{ peer }}</a>{% else %}{{ peer }}{% endif %}
|
||||||
<a href="{{ peer.device.get_absolute_url }}">{{ peer.device }}</a>
|
|
||||||
{% elif peer.circuit %}
|
|
||||||
<a href="{{ peer.circuit.get_absolute_url }}">{{ peer.circuit }}</a>
|
|
||||||
{% endif %}
|
|
||||||
({{ peer }})
|
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if perms.dcim.add_cable %}
|
{% if perms.dcim.add_cable %}
|
||||||
|
Loading…
Reference in New Issue
Block a user