1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

implement dark mode

This commit is contained in:
checktheroads
2021-04-25 20:11:46 -07:00
parent d7d004b48e
commit 2b159fc40f
55 changed files with 1850 additions and 969 deletions

View File

@@ -22,7 +22,10 @@
</script>
{% block head %}{% endblock %}
</head>
<body>
{% with color_mode=preferences|get_key:'ui.colormode' %}
<body{%if color_mode == 'dark'%} data-netbox-color-mode="dark"{% elif color_mode == 'light' %} data-netbox-color-mode="light"{% endif %}>
{% block layout %}{% endblock %}
{% block javascript %}{% endblock %}
{% include './messages.html' %}
@@ -30,4 +33,5 @@
{% block data %}{% endblock %}
</div>
</body>
{% endwith %}
</html>