2018-04-25 22:45:46 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load widget_tweaks %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-08-28 18:22:20 +02:00
|
|
|
<div class="container">
|
|
|
|
<h1 class="title">Settings</h1>
|
|
|
|
<form method="post" action="{% url "settings" %}" >
|
|
|
|
{% csrf_token %}
|
2018-10-09 20:45:10 +02:00
|
|
|
|
|
|
|
<h2 class="subtitle">General Options</h2>
|
2018-09-05 15:40:54 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="theme">{{ form.theme.label }}</label>
|
|
|
|
<div class="control has-icons-left">
|
|
|
|
<div class="select">
|
|
|
|
{% render_field form.theme class+="select" %}
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<span class="fa fa-paint-brush"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-28 18:22:20 +02:00
|
|
|
</div>
|
|
|
|
|
2018-10-09 20:45:10 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="timezone">{{ form.timezone.label }}</label>
|
|
|
|
<div class="control has-icons-left">
|
|
|
|
<div class="select">
|
|
|
|
{% render_field form.timezone class+="select" %}
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<span class="fa fa-clock-o"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2 class="subtitle">Timeline Options</h2>
|
2018-09-05 15:40:54 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox">
|
|
|
|
{% render_field form.filter_replies %}
|
|
|
|
{{ form.filter_replies.label }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox"">
|
|
|
|
{% render_field form.filter_boosts %}
|
|
|
|
{{ form.filter_boosts.label }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-10-02 18:14:03 +02:00
|
|
|
|
2018-10-09 20:45:10 +02:00
|
|
|
<h2 class="subtitle">JavaScript Options</h2>
|
2018-10-02 18:14:03 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox" for="no_javascript">
|
|
|
|
{% render_field form.no_javascript class+="checkbox" %}
|
|
|
|
{{ form.no_javascript.label }}
|
|
|
|
</label>
|
2018-10-09 20:45:10 +02:00
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.no_javascript.help_text }}
|
|
|
|
</p>
|
2018-10-02 18:14:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox" for="notifications">
|
|
|
|
{% render_field form.notifications class+="checkbox" %}
|
|
|
|
{{ form.notifications.label }}
|
|
|
|
</label>
|
2018-10-09 20:45:10 +02:00
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.notifications.help_text }}
|
|
|
|
</p>
|
2018-10-02 18:14:03 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox" for="click_to_load">
|
|
|
|
{% render_field form.click_to_load class+="checkbox" %}
|
|
|
|
{{ form.click_to_load.label }}
|
|
|
|
</label>
|
2018-10-09 20:45:10 +02:00
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.click_to_load.help_text }}
|
|
|
|
</p>
|
2018-10-02 18:14:03 +02:00
|
|
|
</div>
|
|
|
|
|
2018-10-10 00:12:47 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox" for="click_to_load">
|
|
|
|
{% render_field form.lightbox class+="checkbox" %}
|
|
|
|
{{ form.lightbox.label }}
|
|
|
|
</label>
|
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.lightbox.help_text }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2019-01-14 15:08:36 +01:00
|
|
|
<div class="field">
|
|
|
|
<label class="label checkbox" for="click_to_load">
|
|
|
|
{% render_field form.filter_notifications class+="checkbox" %}
|
|
|
|
{{ form.filter_notifications.label }}
|
|
|
|
</label>
|
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.filter_notifications.help_text }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2018-10-18 22:04:28 +02:00
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="poll_frequency">{{ form.poll_frequency.label }}</label>
|
|
|
|
<div class="control">
|
|
|
|
{% render_field form.poll_frequency class+="input" %}
|
|
|
|
</div>
|
|
|
|
<p class="notification is-info preferences-help">
|
|
|
|
{{ form.poll_frequency.help_text }}
|
|
|
|
</p>
|
|
|
|
</div>
|
2018-09-05 15:40:54 +02:00
|
|
|
<div class="field">
|
|
|
|
<input type="submit" name="submit"
|
|
|
|
value="Save" class="button is-primary" >
|
2018-08-21 19:15:10 +02:00
|
|
|
</div>
|
2018-08-28 18:22:20 +02:00
|
|
|
</form>
|
2019-02-15 04:03:13 +01:00
|
|
|
<h2 class="subtitle">Filters and Lists</h2>
|
|
|
|
<div class="section">
|
|
|
|
<p><a href="{% url "list_filters" %}">List filters</a></p>
|
|
|
|
</div>
|
|
|
|
|
2018-08-28 18:22:20 +02:00
|
|
|
</div>
|
2018-04-25 22:45:46 +02:00
|
|
|
{% endblock %}
|