mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Use url_name
instead of request.path
for view-based styles
This commit is contained in:
parent
b0addfbe13
commit
4b14b31853
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-print.css
vendored
BIN
netbox/project-static/dist/netbox-print.css
vendored
Binary file not shown.
@ -971,7 +971,7 @@ div.card-overlay {
|
|||||||
// Page-specific styles.
|
// Page-specific styles.
|
||||||
html {
|
html {
|
||||||
// Shade the home page content background-color.
|
// Shade the home page content background-color.
|
||||||
&[data-netbox-path='/'] {
|
&[data-netbox-url-name='home'] {
|
||||||
.content-container,
|
.content-container,
|
||||||
.search {
|
.search {
|
||||||
background-color: $gray-100 !important;
|
background-color: $gray-100 !important;
|
||||||
@ -985,7 +985,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't show the django-messages toasts on the login screen in favor of the alert component.
|
// Don't show the django-messages toasts on the login screen in favor of the alert component.
|
||||||
&[data-netbox-path*='/login'] {
|
&[data-netbox-url-name='login'] {
|
||||||
#django-messages {
|
#django-messages {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html
|
<html
|
||||||
lang="en"
|
lang="en"
|
||||||
data-netbox-path="{{ request.path }}"
|
data-netbox-url-name="{{ request.resolver_match.url_name }}"
|
||||||
data-netbox-base-path="{{ settings.BASE_PATH }}"
|
data-netbox-base-path="{{ settings.BASE_PATH }}"
|
||||||
{% if preferences|get_key:'ui.colormode' == 'dark'%}
|
{% if preferences|get_key:'ui.colormode' == 'dark'%}
|
||||||
data-netbox-color-mode="dark"
|
data-netbox-color-mode="dark"
|
||||||
|
Loading…
Reference in New Issue
Block a user