mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
A little cleanup from #222
This commit is contained in:
parent
d85561c6fd
commit
f617828712
@ -73,5 +73,8 @@ TIME_FORMAT = 'g:i a'
|
|||||||
SHORT_TIME_FORMAT = 'H:i:s'
|
SHORT_TIME_FORMAT = 'H:i:s'
|
||||||
DATETIME_FORMAT = 'N j, Y g:i a'
|
DATETIME_FORMAT = 'N j, Y g:i a'
|
||||||
SHORT_DATETIME_FORMAT = 'Y-m-d H:i'
|
SHORT_DATETIME_FORMAT = 'Y-m-d H:i'
|
||||||
|
|
||||||
|
# Optionally display a persistent banner at the top and/or bottom of every page. To display the same content in both
|
||||||
|
# banners, define BANNER_TOP and set BANNER_BOTTOM = BANNER_TOP.
|
||||||
BANNER_TOP = ''
|
BANNER_TOP = ''
|
||||||
BANNER_BOTTOM = ''
|
BANNER_BOTTOM = ''
|
||||||
|
@ -38,9 +38,9 @@ TIME_FORMAT = getattr(configuration, 'TIME_FORMAT', 'g:i a')
|
|||||||
SHORT_TIME_FORMAT = getattr(configuration, 'SHORT_TIME_FORMAT', 'H:i:s')
|
SHORT_TIME_FORMAT = getattr(configuration, 'SHORT_TIME_FORMAT', 'H:i:s')
|
||||||
DATETIME_FORMAT = getattr(configuration, 'DATETIME_FORMAT', 'N j, Y g:i a')
|
DATETIME_FORMAT = getattr(configuration, 'DATETIME_FORMAT', 'N j, Y g:i a')
|
||||||
SHORT_DATETIME_FORMAT = getattr(configuration, 'SHORT_DATETIME_FORMAT', 'Y-m-d H:i')
|
SHORT_DATETIME_FORMAT = getattr(configuration, 'SHORT_DATETIME_FORMAT', 'Y-m-d H:i')
|
||||||
CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
|
|
||||||
BANNER_TOP = getattr(configuration, 'BANNER_TOP', False)
|
BANNER_TOP = getattr(configuration, 'BANNER_TOP', False)
|
||||||
BANNER_BOTTOM = getattr(configuration, 'BANNER_BOTTOM', False)
|
BANNER_BOTTOM = getattr(configuration, 'BANNER_BOTTOM', False)
|
||||||
|
CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
|
||||||
|
|
||||||
# Attempt to import LDAP configuration if it has been defined
|
# Attempt to import LDAP configuration if it has been defined
|
||||||
LDAP_IGNORE_CERT_ERRORS = False
|
LDAP_IGNORE_CERT_ERRORS = False
|
||||||
|
@ -295,6 +295,9 @@ ul.rack_near_face li.empty:hover a {
|
|||||||
.dark_gray:hover { background-color: #2c3e50; }
|
.dark_gray:hover { background-color: #2c3e50; }
|
||||||
|
|
||||||
/* Misc */
|
/* Misc */
|
||||||
|
.banner-bottom {
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
.panel table {
|
.panel table {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -227,8 +227,8 @@
|
|||||||
{% if settings.BANNER_TOP %}
|
{% if settings.BANNER_TOP %}
|
||||||
<div class="alert alert-info text-center" role="alert">
|
<div class="alert alert-info text-center" role="alert">
|
||||||
{{ settings.BANNER_TOP|safe }}
|
{{ settings.BANNER_TOP|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if settings.MAINTENANCE_MODE %}
|
{% if settings.MAINTENANCE_MODE %}
|
||||||
<div class="alert alert-warning text-center" role="alert">
|
<div class="alert alert-warning text-center" role="alert">
|
||||||
<h4><i class="fa fa-exclamation-triangle"></i> Maintenance Mode</h4>
|
<h4><i class="fa fa-exclamation-triangle"></i> Maintenance Mode</h4>
|
||||||
@ -244,9 +244,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
<div class="push"></div>
|
|
||||||
{% if settings.BANNER_BOTTOM %}
|
{% if settings.BANNER_BOTTOM %}
|
||||||
<div class="alert alert-info text-center" role="alert" style="margin-bottom:50px">
|
<div class="alert alert-info text-center banner-bottom" role="alert">
|
||||||
{{ settings.BANNER_BOTTOM|safe }}
|
{{ settings.BANNER_BOTTOM|safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user