Преглед изворни кода

Closes #7661: Remove forced styling of custom banners

jeremystretch пре 4 година
родитељ
комит
14fc37a8b8
3 измењених фајлова са 4 додато и 3 уклоњено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 2 2
      netbox/templates/base/layout.html
  3. 1 1
      netbox/templates/login.html

+ 1 - 0
docs/release-notes/version-3.1.md

@@ -4,6 +4,7 @@
 
 
 ### Enhancements
 ### Enhancements
 
 
+* [#7661](https://github.com/netbox-community/netbox/issues/7661) - Remove forced styling of custom banners
 * [#7665](https://github.com/netbox-community/netbox/issues/7665) - Add toggle to show only available child prefixes
 * [#7665](https://github.com/netbox-community/netbox/issues/7665) - Add toggle to show only available child prefixes
 * [#8057](https://github.com/netbox-community/netbox/issues/8057) - Dynamic object tables using HTMX
 * [#8057](https://github.com/netbox-community/netbox/issues/8057) - Dynamic object tables using HTMX
 * [#8080](https://github.com/netbox-community/netbox/issues/8080) - Link to NAT IPs for device/VM primary IPs
 * [#8080](https://github.com/netbox-community/netbox/issues/8080) - Link to NAT IPs for device/VM primary IPs

+ 2 - 2
netbox/templates/base/layout.html

@@ -59,7 +59,7 @@
         </nav>
         </nav>
 
 
         {% if config.BANNER_TOP %}
         {% if config.BANNER_TOP %}
-          <div class="alert alert-info text-center mx-3" role="alert">
+          <div class="text-center mx-3">
             {{ config.BANNER_TOP|safe }}
             {{ config.BANNER_TOP|safe }}
           </div>
           </div>
         {% endif %}
         {% endif %}
@@ -99,7 +99,7 @@
         </div>
         </div>
 
 
         {% if config.BANNER_BOTTOM %}
         {% if config.BANNER_BOTTOM %}
-          <div class="alert alert-info text-center mx-3" role="alert">
+          <div class="text-center mx-3">
             {{ config.BANNER_BOTTOM|safe }}
             {{ config.BANNER_BOTTOM|safe }}
           </div>
           </div>
         {% endif %}
         {% endif %}

+ 1 - 1
netbox/templates/login.html

@@ -8,7 +8,7 @@
 
 
     {# Login banner #}
     {# Login banner #}
     {% if config.BANNER_LOGIN %}
     {% if config.BANNER_LOGIN %}
-      <div class="alert alert-secondary mw-90 mw-md-75 mw-lg-80 mw-xl-75 mw-xxl-50" role="alert">
+      <div class="mw-90 mw-md-75 mw-lg-80 mw-xl-75 mw-xxl-50">
         {{ config.BANNER_LOGIN|safe }}
         {{ config.BANNER_LOGIN|safe }}
       </div>
       </div>
     {% endif %}
     {% endif %}