From bf1c0b7b1c92ffc9ac9d54f074a18feddad6bfb7 Mon Sep 17 00:00:00 2001 From: Sander Steffann Date: Mon, 13 Jul 2020 07:40:49 +0200 Subject: [PATCH] Remove unused part of template (#4812 example 1) If there was a connected endpoint to the circuit termination, the interface would have it as its connected endpoint itself --- netbox/templates/dcim/inc/interface.html | 37 +++++++----------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index ce66d9da2..3e175bfaf 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -93,33 +93,16 @@ {# Connected to a CircuitTermination #} {% with iface.connected_endpoint.get_peer_termination as peer_termination %} {% if peer_termination %} - {% if peer_termination.connected_endpoint %} - - - {{ peer_termination.connected_endpoint.device }} -
- via - - {{ iface.connected_endpoint.circuit.provider }} - {{ iface.connected_endpoint.circuit }} - - - - - {{ peer_termination.connected_endpoint }} - - {% else %} - - - {{ peer_termination.site }} - - via - - {{ iface.connected_endpoint.circuit.provider }} - {{ iface.connected_endpoint.circuit }} - - - {% endif %} + + + {{ peer_termination.site }} + + via + + {{ iface.connected_endpoint.circuit.provider }} + {{ iface.connected_endpoint.circuit }} + + {% else %}