mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 21:17:37 +03:00
Basic subscribe functionality.
This commit is contained in:
parent
75bbcefbec
commit
345308a9ac
5 changed files with 53 additions and 11 deletions
|
@ -125,13 +125,15 @@
|
|||
<div>{{ sub.members }}</div>
|
||||
<div>{{ sub.active }}</div>
|
||||
</div>
|
||||
<div id="sub_subscription">
|
||||
{% if prefs.subs.contains(sub.name) %}
|
||||
<a class="subscribe remove">Unsubscribe</a>
|
||||
{% else %}
|
||||
<a class="subscribe add">Subscribe</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if prefs.subs.contains(sub.name) %}
|
||||
<form id="sub_subscription" action="/r/{{ sub.name }}/unsubscribe" method="POST">
|
||||
<input class="subscribe remove" type="submit" value="Unsubscribe">
|
||||
</form>
|
||||
{% else %}
|
||||
<form id="sub_subscription" action="/r/{{ sub.name }}/subscribe" method="POST">
|
||||
<input class="subscribe add" type="submit" value="Subscribe">
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<details class="panel" id="sidebar">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue