diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index cfc41ef9b..48dc67e39 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -8,7 +8,7 @@ {% endif %} {# Icon and name #} - + {{ iface }} @@ -29,7 +29,7 @@ {{ iface.get_mode_display|default:"—" }} {# Cable #} - + {% if iface.cable %} {{ iface.cable }} @@ -61,19 +61,27 @@ {% elif iface.connected_endpoint.term_side %} {# Connected to a CircuitTermination #} {% with iface.connected_endpoint.get_peer_termination as peer_termination %} - - - {% if peer_termination %} - {% if peer_termination.interface %} - {{ peer_termination.interface.device }} - ({{ peer_termination.site }}) - {% else %} + {% if peer_termination %} + {% if peer_termination.connected_endpoint %} + + {{ peer_termination.connected_endpoint.device }}
+ via {{ iface.connected_endpoint.circuit }} + + + {{ peer_termination.connected_endpoint }} + + {% else %} + {{ peer_termination.site }} - {% endif %} - via + via {{ iface.connected_endpoint.circuit }} + {% endif %} - {{ iface.connected_endpoint.circuit }} - + {% else %} + + + {{ iface.connected_endpoint.circuit }} + + {% endif %} {% endwith %} {% else %}