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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user