mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 15:17:47 +00:00
Wide UI Mode
This commit is contained in:
parent
a0866b251e
commit
f445c42f55
13 changed files with 102 additions and 64 deletions
|
@ -96,6 +96,7 @@ pub struct ErrorTemplate {
|
|||
pub struct Preferences {
|
||||
pub front_page: String,
|
||||
pub layout: String,
|
||||
pub wide: String,
|
||||
pub hide_nsfw: String,
|
||||
pub comment_sort: String,
|
||||
}
|
||||
|
@ -109,6 +110,7 @@ pub fn prefs(req: HttpRequest) -> Preferences {
|
|||
Preferences {
|
||||
front_page: cookie(&req, "front_page"),
|
||||
layout: cookie(&req, "layout"),
|
||||
wide: cookie(&req, "wide"),
|
||||
hide_nsfw: cookie(&req, "hide_nsfw"),
|
||||
comment_sort: cookie(&req, "comment_sort"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue