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 %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<main>
|
2021-01-06 02:04:49 +00:00
|
|
|
<form id="settings" action="/settings" method="POST">
|
|
|
|
<div id="prefs">
|
2021-01-09 04:55:40 +00:00
|
|
|
<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>
|
|
|
|
</div>
|
2021-01-07 16:38:05 +00:00
|
|
|
<div id="layout">
|
|
|
|
<label for="layout">Layout:</label>
|
|
|
|
<select name="layout">
|
2021-01-09 01:50:03 +00:00
|
|
|
{% call utils::options(prefs.layout, ["card", "clean", "compact"], "clean") %}
|
2021-01-07 16:38:05 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="comment_sort">
|
|
|
|
<label for="comment_sort">Default comment sort:</label>
|
|
|
|
<select name="comment_sort">
|
2021-01-09 01:50:03 +00:00
|
|
|
{% call utils::options(prefs.comment_sort, ["confidence", "top", "new", "controversial", "old"], "confidence") %}
|
2021-01-07 16:38:05 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2021-01-09 01:35:04 +00:00
|
|
|
<div id="hide_nsfw">
|
|
|
|
<label for="hide_nsfw">Hide NSFW posts:</label>
|
2021-01-09 01:50:03 +00:00
|
|
|
<input type="checkbox" name="hide_nsfw" {% if prefs.hide_nsfw == "on" %}checked{% endif %}>
|
2021-01-09 01:35:04 +00:00
|
|
|
</div>
|
2021-01-06 02:04:49 +00:00
|
|
|
</div>
|
2021-01-09 04:55:40 +00:00
|
|
|
<p id="settings_note"><b>Note:</b> settings are saved in browser cookies. Clearing your cookie data will reset them.</p>
|
2021-01-06 02:04:49 +00:00
|
|
|
<input id="save" type="submit" value="Save">
|
2021-01-03 04:50:23 +00:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{% endblock %}
|