mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-23 07:19:28 +01:00
57 lines
2.8 KiB
Plaintext
57 lines
2.8 KiB
Plaintext
doctype html
|
|
html
|
|
head
|
|
title preferences - teddit
|
|
include includes/head.pug
|
|
body(class=""+ user_preferences.theme +"")
|
|
include includes/topbar.pug
|
|
.container
|
|
.content
|
|
h1 Preferences
|
|
form(action="/saveprefs", method="POST")
|
|
legend Display
|
|
.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")
|
|
.setting
|
|
label(for="highlight_controversial") Show a dagger (†) on comments voted controversial:
|
|
if(!user_preferences.highlight_controversial || user_preferences.highlight_controversial == 'true')
|
|
input(type="checkbox", name="highlight_controversial", id="highlight_controversial", checked="checked")
|
|
else
|
|
input(type="checkbox", name="highlight_controversial", id="highlight_controversial")
|
|
.setting
|
|
label(for="nsfw_enabled") Show NSFW content:
|
|
if (instance_config.nsfw_enabled === false && user_preferences.nsfw_enabled != 'true') || user_preferences.nsfw_enabled === 'false'
|
|
input(type="checkbox", name="nsfw_enabled", id="nsfw_enabled")
|
|
else
|
|
input(type="checkbox", name="nsfw_enabled", id="nsfw_enabled", checked="checked")
|
|
legend Subscribed subreddits
|
|
.setting
|
|
details
|
|
summary
|
|
span Show subscribed subreddits
|
|
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
|
|
ul.subreddit-listing
|
|
each subreddit in user_preferences.subbed_subreddits
|
|
li
|
|
a(href="/unsubscribe/" + subreddit + "/?b=/preferences", class="sub-to-subreddit gray", title="subscriptions are saved in your browser's cookies") unsubscribe
|
|
a(href="/r/" + subreddit) #{subreddit}
|
|
else
|
|
small no subscribed subreddits
|
|
small(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
|
|
include includes/footer.pug
|