Fix last commit
This commit is contained in:
parent
c19520b435
commit
b5d9047dd6
3 changed files with 4 additions and 8 deletions
|
@ -277,8 +277,7 @@ def devices(request):
|
|||
"organization": orga,
|
||||
"devices": sorted(devices, key=lambda x: x.serial),
|
||||
"wifis": sorted(wifis, key=lambda x: x.serial),
|
||||
"users": sorted(users, key=lambda x: x.username),
|
||||
"notifications": getNotifications()
|
||||
"users": sorted(users, key=lambda x: x.username)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
{% load notifications %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
@ -7,11 +8,7 @@
|
|||
|
||||
<div align="center"><b>Manage:</b> <a id="linkdevices" href="#" onclick="showdevices();">Devices</a> ‐ <a id="linkwifi" href="#" onclick="showwifi();">WiFi</a>{% if user.is_staff %} ‐ <a id="linkusers" href="#" onclick="showusers();">Users</a>{% endif %}</div>
|
||||
|
||||
{% for notification in notifications %}
|
||||
<div class="alert alert-{% if notification.status == 0 %}info{% elif notification.status == 1 %}warning{% else %}danger{% endif %}">
|
||||
<strong>{% if notification.status == 0 %}Notice:{% elif notification.status == 1 %}Warning:{% else %}Emergency:{% endif %}</strong> {{ notification.text }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% getNotifications %}
|
||||
|
||||
<div name="devicespart" id="devicespart">
|
||||
<h2>Devices</h2>
|
||||
|
|
|
@ -7,7 +7,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||
SECRET_KEY = '=go8&h#^kh6ksr11e2z-@4qqd6t%63$x#-!s#l_yhw@oyanrys'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ["admin360.kumi.host"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue