From cd64fcac8dd5f9755beef199f0f7bf40fba55201 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 1 Apr 2021 17:21:04 -0400 Subject: [PATCH] Linkify connected object --- netbox/templates/circuits/inc/circuit_termination.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index 6dc079f0f..2832f5cc1 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -55,13 +55,8 @@ {% with peer=termination.get_cable_peer %} - to - {% if peer.device %} - {{ peer.device }} - {% elif peer.circuit %} - {{ peer.circuit }} - {% endif %} - ({{ peer }}) + to {{ peer.parent_object }} + / {% if peer.get_absolute_url %}{{ peer }}{% else %}{{ peer }}{% endif %} {% endwith %} {% else %} {% if perms.dcim.add_cable %}