mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 21:17:37 +03:00
Set subscriptions as default front page
This commit is contained in:
parent
9c58d23b41
commit
21d96e261f
7 changed files with 86 additions and 48 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue