mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 11:19:22 +01:00
fix logic for (un)subscribing to subreddits in suggested subreddits
This commit is contained in:
parent
543f01641c
commit
e9b05dd5ba
@ -121,9 +121,9 @@ html
|
|||||||
h2 #{suggested_subreddit.data.display_name_prefixed}: #{cleanTitle(suggested_subreddit.data.title)}
|
h2 #{suggested_subreddit.data.display_name_prefixed}: #{cleanTitle(suggested_subreddit.data.title)}
|
||||||
.sub-button
|
.sub-button
|
||||||
if subbed_to_this_subreddit
|
if subbed_to_this_subreddit
|
||||||
a(href="/unsubscribe/" + suggested_subreddit.data.display_name + "?b=/r/" + subreddit + "/search?q=" + q + "§nsfw=" + nsfw + "", class="sub-to-subreddit gray", title="subscriptions are saved in your browser's cookies") unsubscribe
|
a(href="/unsubscribe/" + suggested_subreddit.data.display_name + "?b=/r/" + subreddit + "/search?q=" + q + "§1nsfw=" + nsfw + "", class="sub-to-subreddit gray", title="subscriptions are saved in your browser's cookies") unsubscribe
|
||||||
else
|
else
|
||||||
a(href="/subscribe/" + suggested_subreddit.data.display_name + "?b=/r/" + subreddit + "/search?q=" + q + "§nsfw=" + nsfw + "", class="sub-to-subreddit", title="subscriptions are saved in your browser's cookies") subscribe
|
a(href="/subscribe/" + suggested_subreddit.data.display_name + "?b=/r/" + subreddit + "/search?q=" + q + "§1nsfw=" + nsfw + "", class="sub-to-subreddit", title="subscriptions are saved in your browser's cookies") subscribe
|
||||||
.description
|
.description
|
||||||
p #{cleanTitle(suggested_subreddit.data.public_description)}
|
p #{cleanTitle(suggested_subreddit.data.public_description)}
|
||||||
.meta
|
.meta
|
||||||
|
Loading…
Reference in New Issue
Block a user