From 2b2e72282242d0fa1b5ac0a139ee655845de061b Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 11 Jan 2024 16:49:50 -0500 Subject: [PATCH] Fix positioning of card header buttons --- .../circuits/inc/circuit_termination.html | 48 +++++++++---------- .../templates/dcim/device/render_config.html | 10 ++-- netbox/templates/extras/objectchange.html | 22 ++++----- .../virtualmachine/render_config.html | 10 ++-- 4 files changed, 43 insertions(+), 47 deletions(-) diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index eafaba57d..6c28ba252 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -2,29 +2,29 @@ {% load i18n %}
-
-
- {% if not termination and perms.circuits.add_circuittermination %} - - {% trans "Add" %} - - {% endif %} - {% if termination and perms.circuits.change_circuittermination %} - - {% trans "Edit" %} - - - {% trans "Swap" %} - - {% endif %} - {% if termination and perms.circuits.delete_circuittermination %} - - {% trans "Delete" %} - - {% endif %} -
-
{% blocktrans %}Termination {{ side }}{% endblocktrans %}
-
+
+ {% blocktrans %}Termination{% endblocktrans %} {{ side }} +
+ {% if not termination and perms.circuits.add_circuittermination %} + + {% trans "Add" %} + + {% endif %} + {% if termination and perms.circuits.change_circuittermination %} + + {% trans "Edit" %} + + + {% trans "Swap" %} + + {% endif %} + {% if termination and perms.circuits.delete_circuittermination %} + + {% trans "Delete" %} + + {% endif %} +
+
{% if termination %} @@ -59,7 +59,7 @@ {% trans "Trace" %} {% if perms.dcim.change_cable %} - + {% trans "Edit" %} {% endif %} diff --git a/netbox/templates/dcim/device/render_config.html b/netbox/templates/dcim/device/render_config.html index 759fc7177..5b545c125 100644 --- a/netbox/templates/dcim/device/render_config.html +++ b/netbox/templates/dcim/device/render_config.html @@ -51,14 +51,12 @@
- + {% if config_template %}
{{ rendered_config }}
{% else %} diff --git a/netbox/templates/extras/objectchange.html b/netbox/templates/extras/objectchange.html index 63f2019ae..4cc0cb481 100644 --- a/netbox/templates/extras/objectchange.html +++ b/netbox/templates/extras/objectchange.html @@ -80,17 +80,17 @@
-
-
{% trans "Difference" %}
- -
+
+ {% trans "Difference" %} + +
{% if diff_added == diff_removed %} diff --git a/netbox/templates/virtualization/virtualmachine/render_config.html b/netbox/templates/virtualization/virtualmachine/render_config.html index 6d14b5e6d..e1ff26d0a 100644 --- a/netbox/templates/virtualization/virtualmachine/render_config.html +++ b/netbox/templates/virtualization/virtualmachine/render_config.html @@ -51,14 +51,12 @@
- + {% if config_template %}
{{ rendered_config }}
{% else %}