2021-01-03 04:50:23 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import "utils.html" as utils %}
|
|
|
|
|
|
|
|
{% block title %}Libreddit Settings{% endblock %}
|
|
|
|
|
|
|
|
{% block search %}
|
|
|
|
{% call utils::search("".to_owned(), "", "") %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-01-30 08:47:30 +00:00
|
|
|
{% block subscriptions %}
|
2021-01-30 05:00:55 +00:00
|
|
|
{% call utils::sub_list("") %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2021-01-10 21:08:36 +00:00
|
|
|
{% block content %}
|
|
|
|
<form id="settings" action="/settings" method="POST">
|
|
|
|
<div id="prefs">
|
2021-01-11 02:15:34 +00:00
|
|
|
<p>Appearance</p>
|
|
|
|
<div id="theme">
|
|
|
|
<label for="theme">Theme:</label>
|
|
|
|
<select name="theme">
|
2021-01-18 02:11:36 +00:00
|
|
|
{% call utils::options(prefs.theme, ["system", "light", "dark"], "system") %}
|
2021-01-11 02:15:34 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2021-01-10 21:08:36 +00:00
|
|
|
<p>Interface</p>
|
|
|
|
<div id="front_page">
|
|
|
|
<label for="front_page">Front page:</label>
|
|
|
|
<select name="front_page">
|
|
|
|
{% call utils::options(prefs.front_page, ["popular", "all"], "popular") %}
|
|
|
|
</select>
|
2021-01-11 02:15:34 +00:00
|
|
|
</div>
|
2021-01-10 21:08:36 +00:00
|
|
|
<div id="layout">
|
|
|
|
<label for="layout">Layout:</label>
|
|
|
|
<select name="layout">
|
2021-01-17 19:39:57 +00:00
|
|
|
{% call utils::options(prefs.layout, ["card", "clean", "compact"], "card") %}
|
2021-01-10 21:08:36 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="wide">
|
|
|
|
<label for="wide">Wide UI:</label>
|
|
|
|
<input type="checkbox" name="wide" {% if prefs.wide == "on" %}checked{% endif %}>
|
|
|
|
</div>
|
2021-01-11 02:15:34 +00:00
|
|
|
<p>Content</p>
|
2021-01-10 21:08:36 +00:00
|
|
|
<div id="comment_sort">
|
|
|
|
<label for="comment_sort">Default comment sort:</label>
|
|
|
|
<select name="comment_sort">
|
|
|
|
{% call utils::options(prefs.comment_sort, ["confidence", "top", "new", "controversial", "old"], "confidence") %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="hide_nsfw">
|
|
|
|
<label for="hide_nsfw">Hide NSFW posts:</label>
|
|
|
|
<input type="checkbox" name="hide_nsfw" {% if prefs.hide_nsfw == "on" %}checked{% endif %}>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p id="settings_note"><b>Note:</b> settings are saved in browser cookies. Clearing your cookie data will reset them.</p>
|
|
|
|
<input id="save" type="submit" value="Save">
|
|
|
|
</form>
|
2021-01-17 19:39:57 +00:00
|
|
|
{% endblock %}
|