From 285d140a1c3dad0d9781d6cdd470365148f4e230 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 9 Jun 2025 10:05:01 -0400 Subject: [PATCH] Clean up conditional logic --- netbox/templates/dcim/powerfeed.html | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/netbox/templates/dcim/powerfeed.html b/netbox/templates/dcim/powerfeed.html index bd7b90f81..f03ead88b 100644 --- a/netbox/templates/dcim/powerfeed.html +++ b/netbox/templates/dcim/powerfeed.html @@ -117,14 +117,12 @@ {% include 'dcim/inc/connection_endpoints.html' with trace_url='dcim:powerfeed_trace' %} {% else %}
- {% trans "Not connected" %} - {% endif %} - {% if not object.mark_connected and not object.cable %} - {% if perms.dcim.add_cable %} - - {% trans "Connect" %} - - {% endif %} + {% trans "Not connected" %} + {% if perms.dcim.add_cable %} + + {% trans "Connect" %} + + {% endif %}
{% endif %}