2021-10-15 14:08:27 +00:00
|
|
|
{% extends "settings.html" %}
|
|
|
|
|
2022-01-13 23:39:39 +00:00
|
|
|
{% block pagetitle %}Profile Settings - {{SITE_NAME}}{% endblock %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<div class="col col-lg-8">
|
|
|
|
|
|
|
|
<div class="settings">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5" name="referral">Frontpage Size</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="frontsize">Frontpage Size</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change how many posts appear on every page.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-02-13 01:08:12 +00:00
|
|
|
<select autocomplete="off" id='frontsize' class="form-control" form="profile-settings" name="frontsize" onchange="post_toast(this,'/settings/profile?frontsize='+document.getElementById('frontsize').value)">
|
2022-03-17 07:58:28 +00:00
|
|
|
{% for entry in [15, 25, 50, 100] %}
|
2021-10-15 14:08:27 +00:00
|
|
|
<option value="{{entry}}"{{' selected' if v.frontsize==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5" name="referral">Default Sorting and Time Filter</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaultsortingcomments">Default Sorting for Comments</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default sorting for comments.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-02-13 01:08:12 +00:00
|
|
|
<select autocomplete="off" id='defaultsortingcomments' class="form-control" form="profile-settings" name="defaultsortingcomments" onchange="post_toast(this,'/settings/profile?defaultsortingcomments='+document.getElementById('defaultsortingcomments').value)">
|
2021-10-15 14:08:27 +00:00
|
|
|
{% for entry in ["new", "old", "top", "bottom", "controversial"] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.defaultsortingcomments==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaultsorting">Default Sorting for Posts</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default sorting for posts.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-02-13 01:08:12 +00:00
|
|
|
<select autocomplete="off" id='defaultsorting' class="form-control" form="profile-settings" name="defaultsorting" onchange="post_toast(this,'/settings/profile?defaultsorting='+document.getElementById('defaultsorting').value)">
|
2022-03-17 10:28:13 +00:00
|
|
|
{% for entry in ["hot", "bump", "new", "old", "top", "bottom", "controversial", "comments"] %}
|
2021-10-15 14:08:27 +00:00
|
|
|
<option value="{{entry}}"{{' selected' if v.defaultsorting==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="defaulttime">Default Time Filter for Posts</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<p>Change the default time filter for posts.</p>
|
|
|
|
<div class="input-group mb2">
|
2022-02-13 01:08:12 +00:00
|
|
|
<select autocomplete="off" id='defaulttime' class="form-control" form="profile-settings" name="defaulttime" onchange="post_toast(this,'/settings/profile?defaulttime='+document.getElementById('defaulttime').value)">
|
2021-10-15 14:08:27 +00:00
|
|
|
{% for entry in ["hour", "day", "week", "month", "year", "all"] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.defaulttime==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5">Tab Behaviour</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label for="newtab">Open Internal Links In New Tabs</label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="newtab" name="newtab"{% if v.newtab %} checked{% endif %} onchange="post_toast(this,'/settings/profile?newtab='+document.getElementById('newtab').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="newtab"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically open links to other pages in the site in new tabs.</span>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="newtabexternal">Open External Links In New Tabs</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="newtabexternal" name="newtabexternal"{% if v.newtabexternal %} checked{% endif %} onchange="post_toast(this,'/settings/profile?newtabexternal='+document.getElementById('newtabexternal').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="newtabexternal"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically open links to other sites in new tabs.</span>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5">Twitter Links</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label for="nitter">Use Nitter</label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="nitter" name="nitter"{% if v.nitter %} checked{% endif %} onchange="post_toast(this,'/settings/profile?nitter='+document.getElementById('nitter').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="nitter"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically convert twitter.com links to nitter.net links.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5">Reddit Links</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
2021-11-19 23:05:28 +00:00
|
|
|
<div class="d-lg-flex border-bottom">
|
2021-10-15 14:08:27 +00:00
|
|
|
<div class="title w-lg-25">
|
2022-04-10 18:42:58 +00:00
|
|
|
<label for="reddit">Reddit Domain</label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
2022-04-10 18:42:58 +00:00
|
|
|
<p>Change the domain you would like to view reddit posts in.</p>
|
|
|
|
<div class="input-group mb2">
|
|
|
|
<select autocomplete="off" id='reddit' class="form-control" form="profile-settings" name="reddit" onchange="post_toast(this,'/settings/profile?reddit='+document.getElementById('reddit').value)">
|
|
|
|
{% for entry in ['old.reddit.com', 'reddit.com', 'unddit.com', 'teddit.net', 'libredd.it'] %}
|
|
|
|
<option value="{{entry}}"{{' selected' if v.reddit==entry}}>{{entry}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="controversial">Sort by Controversial</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="controversial" name="controversial"{% if v.controversial %} checked{% endif %} onchange="post_toast(this,'/settings/profile?controversial='+document.getElementById('controversial').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="controversial"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically sort reddit.com links by controversial.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<h2 class="h5">Content Filters</h2>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
2021-11-04 17:24:43 +00:00
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="sigs_disabled">Disable signatures</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="sigs_disabled" name="sigs_disabled"{% if v.sigs_disabled %} checked{% endif %} onchange="post_toast(this,'/settings/profile?sigs_disabled='+document.getElementById('sigs_disabled').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="sigs_disabled"></label>
|
2021-11-04 17:24:43 +00:00
|
|
|
</div>
|
|
|
|
|
2021-11-04 17:42:08 +00:00
|
|
|
<span class="text-small-extra text-muted">Hide user signatures.</span>
|
2021-11-04 17:24:43 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="slurreplacer">Disable +18 Warnings</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="over18" name="over18"{% if v.over_18 %} checked{% endif %} onchange="post_toast(this,'/settings/profile?over18='+document.getElementById('over18').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="over18"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to not get a warning before viewing +18 content.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="slurreplacer">Slur Replacer</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="slurreplacer" name="slurreplacer"{% if v.slurreplacer %} checked{% endif %} onchange="post_toast(this,'/settings/profile?slurreplacer='+document.getElementById('slurreplacer').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="slurreplacer"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically replace slurs.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-lg-flex border-bottom">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="hidevotedon">Hide Posts Voted On</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2022-02-13 01:08:12 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="hidevotedon" name="hidevotedon"{% if v.hidevotedon %} checked{% endif %} onchange="post_toast(this,'/settings/profile?hidevotedon='+document.getElementById('hidevotedon').checked);">
|
2021-12-14 22:48:37 +00:00
|
|
|
<label class="custom-control-label" for="hidevotedon"></label>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="text-small-extra text-muted">Enable if you would like to automatically hide posts you have voted on from your frontpage.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-flex">
|
|
|
|
|
|
|
|
<div class="title w-lg-25">
|
|
|
|
<label for="filters-text">Custom Filters</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100">
|
2021-10-16 14:44:42 +00:00
|
|
|
<form id="custom-filter" action="/settings/filters" method="post">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2021-10-15 14:08:27 +00:00
|
|
|
<small>Hides matching posts from the frontpage and collapses matching comments.</small>
|
|
|
|
<div class="input-group mb-2">
|
2021-12-28 12:41:26 +00:00
|
|
|
<textarea autocomplete="off" class="form-control rounded" id="filters-text" aria-label="With textarea"
|
2021-10-15 14:08:27 +00:00
|
|
|
placeholder="Add your own custom content filters."
|
2021-11-04 17:24:43 +00:00
|
|
|
rows="3" name="filters" form="custom-filter" maxlength="1000">{% if v.custom_filter_list %}{{v.custom_filter_list}}{% endif %}</textarea>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
2021-12-14 22:48:37 +00:00
|
|
|
<div class="d-flex">
|
2021-10-15 14:08:27 +00:00
|
|
|
<small>Use a new line for each filter entry. Limit of 1000 characters.</small>
|
2021-12-28 12:41:26 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" id="bioSave" type="submit" value="Save Changes">
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
{% endblock %}
|