2020-11-17 21:44:32 +01:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
title preferences - teddit
|
|
|
|
include includes/head.pug
|
2020-11-21 13:50:12 +01:00
|
|
|
body(class=""+ user_preferences.theme +"")
|
2020-11-17 21:44:32 +01:00
|
|
|
include includes/topbar.pug
|
|
|
|
.container
|
|
|
|
.content
|
|
|
|
h1 Preferences
|
2020-11-21 13:50:12 +01:00
|
|
|
form(action="/saveprefs", method="POST")
|
|
|
|
legend Display
|
2020-12-24 22:13:08 +01:00
|
|
|
.setting
|
|
|
|
label(for="theme") Theme:
|
|
|
|
select(id="theme", name="theme")
|
|
|
|
if(!user_preferences.theme || user_preferences.theme == '')
|
|
|
|
option(value="", selected="selected") White
|
|
|
|
option(value="dark") Dark
|
|
|
|
if(user_preferences.theme === 'dark')
|
|
|
|
option(value="") White
|
|
|
|
option(value="dark", selected="selected") Dark
|
|
|
|
.setting
|
|
|
|
label(for="flairs") Show flairs:
|
|
|
|
if(!user_preferences.flairs || user_preferences.flairs == 'true')
|
|
|
|
input(type="checkbox", name="flairs", id="flairs", checked="checked")
|
|
|
|
else
|
|
|
|
input(type="checkbox", name="flairs", id="flairs")
|
2020-11-21 13:50:12 +01:00
|
|
|
p(class="notice") Preferences are stored client-side using cookies without any personal information.
|
|
|
|
input(type="submit", value="Save preferences")
|
|
|
|
a(href="/resetprefs", class="btn") Reset preferences
|