diff --git a/netbox/project-static/styles/old/netbox.scss b/netbox/project-static/styles/old/netbox.scss index c11a3678b..36a2e0956 100644 --- a/netbox/project-static/styles/old/netbox.scss +++ b/netbox/project-static/styles/old/netbox.scss @@ -7,45 +7,6 @@ @import './utilities'; //@import './variables'; -// Object list control buttons (Add/Clone/Import/Export) -.controls { - margin-bottom: map.get($spacers, 2); - - @media print { - // Never print controls. Use this over the .noprint utility so plugin authors don't need to - // remember to add the class. - display: none !important; - } - - // Each group of buttons. - .control-group { - display: flex; - flex-wrap: wrap; - // Left-align controls on mobile. - justify-content: flex-start; - - // Right-align controls on larger screens. - @include media-breakpoint-up(lg) { - justify-content: flex-end; - } - - > * { - // Pad each control button. - margin: map.get($spacers, 1); - - &:first-child { - // Don't pad the left side of the first control button. - margin-left: 0; - } - - &:last-child { - // Don't pad the right side of the last control button. - margin-right: 0; - } - } - } -} - // Global Search nav.search { // Don't overtake dropdowns diff --git a/netbox/templates/core/configrevision.html b/netbox/templates/core/configrevision.html index c7640e521..34ee6bda9 100644 --- a/netbox/templates/core/configrevision.html +++ b/netbox/templates/core/configrevision.html @@ -10,23 +10,15 @@ {% block breadcrumbs %} {% endblock %} -{% block controls %} -
-
- {% plugin_buttons object %} - {% if not object.pk or object.is_active and perms.core.add_configrevision %} - {% url 'core:configrevision_add' as edit_url %} - {% include "buttons/edit.html" with url=edit_url %} - {% endif %} - {% if object.pk and not object.is_active and perms.core.delete_configrevision %} - {% delete_button object %} - {% endif %} -
-
- {% custom_links object %} -
-
-{% endblock controls %} +{% block control-buttons %} + {% if not object.pk or object.is_active and perms.core.add_configrevision %} + {% url 'core:configrevision_add' as edit_url %} + {% include "buttons/edit.html" with url=edit_url %} + {% endif %} + {% if object.pk and not object.is_active and perms.core.delete_configrevision %} + {% delete_button object %} + {% endif %} +{% endblock control-buttons %} {% block subtitle %} {% if object.created %} diff --git a/netbox/templates/core/configrevision_restore.html b/netbox/templates/core/configrevision_restore.html index c7449270c..884abafe8 100644 --- a/netbox/templates/core/configrevision_restore.html +++ b/netbox/templates/core/configrevision_restore.html @@ -13,15 +13,11 @@ {% endblock %} -{% block controls %} -
-
- {% if request.user|can_delete:job %} - {% delete_button job %} - {% endif %} -
-
-{% endblock controls %} +{% block control-buttons %} + {% if request.user|can_delete:job %} + {% delete_button job %} + {% endif %} +{% endblock control-buttons %} {% block tabs %}