Add top & bottom banners, maintenance notice

This commit is contained in:
jeremystretch 2021-07-20 11:05:19 -04:00
parent fa617c78af
commit cc5ea61f5a

View File

@ -105,6 +105,19 @@
</div>
</nav>
{% if settings.BANNER_TOP %}
<div class="alert alert-info text-center mx-3" role="alert">
{{ settings.BANNER_TOP|safe }}
</div>
{% endif %}
{% if settings.MAINTENANCE_MODE %}
<div class="alert alert-warning text-center mx-3" role="alert">
<h4><i class="mdi mdi-alert"></i> Maintenance Mode</h4>
<span>NetBox is currently in maintenance mode. Functionality may be limited.</span>
</div>
{% endif %}
{# Page header #}
{% block header %}
<div class="title-container px-3 pb-3">
@ -129,6 +142,12 @@
</div>
</div>
{% if settings.BANNER_BOTTOM %}
<div class="alert alert-info text-center mx-3" role="alert">
{{ settings.BANNER_BOTTOM|safe }}
</div>
{% endif %}
{# Page footer #}
<footer class="footer container-fluid pb-3 pt-4 px-0">
<div class="row align-items-center justify-content-end mx-0">