From 30f4eb8da0f8f50663e5b55307532035a28bc0fc Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Tue, 20 Jul 2021 14:01:42 -0400 Subject: [PATCH] Shrink circuit termination buttons; linkify far end termination --- .../circuits/inc/circuit_termination.html | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index 1f6100e83..8166e919d 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -4,20 +4,20 @@
{% if not termination and perms.circuits.add_circuittermination %} - + Add {% endif %} {% if termination and perms.circuits.change_circuittermination %} - + Edit - + Swap {% endif %} {% if termination and perms.circuits.delete_circuittermination %} - + Delete {% endif %} @@ -40,30 +40,29 @@ Termination {% if termination.mark_connected %} - - Marked as connected + + Marked as connected {% elif termination.cable %} -
- + - - {% if perms.dcim.delete_cable %} + + {% if perms.dcim.delete_cable %} Disconnect - {% endif %} + {% endif %}
- + {{ termination.cable }} {% with peer=termination.get_cable_peer %} to {% if peer.device %} - {{ peer.device }} + {{ peer.device }}
{% elif peer.circuit %} - {{ peer.circuit }} + {{ peer.circuit }}
{% endif %} - {{ peer }} + {{ peer }} {% endwith %} {% else %} {% if perms.dcim.add_cable %}