Set subscriptions as default front page

This commit is contained in:
spikecodes 2021-01-30 20:18:57 -08:00
parent 9c58d23b41
commit 21d96e261f
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
7 changed files with 86 additions and 48 deletions

View file

@ -21,7 +21,7 @@
<div id="front_page">
<label for="front_page">Front page:</label>
<select name="front_page">
{% call utils::options(prefs.front_page, ["popular", "all"], "popular") %}
{% call utils::options(prefs.front_page, ["default", "popular", "all"], "default") %}
</select>
</div>
<div id="layout">

View file

@ -127,9 +127,13 @@
</div>
<div id="sub_subscription">
{% if prefs.subs.contains(sub.name) %}
<a href="/r/{{ sub.name }}/unsubscribe" class="subscribe remove">Unsubscribe</a>
<form action="/r/{{ sub.name }}/unsubscribe">
<button id="unsubscribe">Unsubscribe</button>
</form>
{% else %}
<a href="/r/{{ sub.name }}/subscribe" class="subscribe add">Subscribe</a>
<form action="/r/{{ sub.name }}/subscribe">
<button id="subscribe">Subscribe</button>
</form>
{% endif %}
</div>
</div>