mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-15 08:49:19 +00:00
proxy: switch to "auto" as the default theme
use the "auto" theme per default. it uses a media query to detect the users preferred theme. Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
66bcf56cda
commit
ee0eaeae63
@ -103,9 +103,9 @@ fn get_theme(headers: &http::HeaderMap) -> String {
|
|||||||
};
|
};
|
||||||
|
|
||||||
match cookie_from_header(headers, "PBSThemeCookie") {
|
match cookie_from_header(headers, "PBSThemeCookie") {
|
||||||
Some(theme) if theme == "auto" => theme,
|
Some(theme) if theme == "crisp" => String::from(""),
|
||||||
Some(theme) if theme != "__default__" && exists(&theme) => theme,
|
Some(theme) if exists(&theme) => theme,
|
||||||
_ => String::from(""),
|
_ => String::from("auto"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user