2021-01-03 17:50:23 +13: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 15:04:49 +13:00
|
|
|
<form id="settings" action="/settings" method="POST">
|
|
|
|
<div id="prefs">
|
2021-01-08 05:38:05 +13:00
|
|
|
<div id="layout">
|
|
|
|
<label for="layout">Layout:</label>
|
|
|
|
<select name="layout">
|
|
|
|
{% call utils::options(layout, ["card", "clean", "compact"], "clean") %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div id="comment_sort">
|
|
|
|
<label for="comment_sort">Default comment sort:</label>
|
|
|
|
<select name="comment_sort">
|
|
|
|
{% call utils::options(comment_sort, ["confidence", "top", "new", "controversial", "old"], "confidence") %}
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-01-06 15:04:49 +13:00
|
|
|
</div>
|
|
|
|
<input id="save" type="submit" value="Save">
|
2021-01-03 17:50:23 +13:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{% endblock %}
|