add /r/all even when we have subscriptions

This commit is contained in:
teddit 2021-01-09 12:41:51 +01:00
parent d72b00cb87
commit f3eceae1f3

View File

@ -9,6 +9,7 @@ div#topbar
a(href="/preferences") [preferences] a(href="/preferences") [preferences]
.top-links .top-links
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits) if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
a(href="/r/all") All
each subreddit in user_preferences.subbed_subreddits each subreddit in user_preferences.subbed_subreddits
a(href="/r/" + subreddit) #{subreddit} a(href="/r/" + subreddit) #{subreddit}
else else