2020-11-17 21:44:32 +01:00
|
|
|
div#topbar
|
|
|
|
nav
|
|
|
|
.nav-item.left
|
2021-01-20 17:00:05 +01:00
|
|
|
a(href="/")
|
|
|
|
img(src="/favicon.png", alt="")
|
|
|
|
| teddit
|
2020-11-17 21:44:32 +01:00
|
|
|
.settings
|
|
|
|
.icon-container
|
2020-12-30 21:36:49 +01:00
|
|
|
a(href="/about") [about]
|
2020-11-17 21:44:32 +01:00
|
|
|
.icon-container
|
2020-12-30 21:36:49 +01:00
|
|
|
a(href="/preferences") [preferences]
|
2020-11-17 21:44:32 +01:00
|
|
|
.top-links
|
2021-01-08 21:39:46 +01:00
|
|
|
if user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits)
|
2021-01-12 16:23:18 +01:00
|
|
|
a(href="/r/popular") Popular
|
2021-01-09 12:41:51 +01:00
|
|
|
a(href="/r/all") All
|
2021-02-06 20:17:36 +01:00
|
|
|
a(href="/saved") Saved
|
2021-01-08 21:39:46 +01:00
|
|
|
each subreddit in user_preferences.subbed_subreddits
|
|
|
|
a(href="/r/" + subreddit) #{subreddit}
|
2022-06-11 19:27:17 +02:00
|
|
|
else if instance_config.suggested_subreddits && Array.isArray(instance_config.suggested_subreddits)
|
|
|
|
each subreddit in instance_config.suggested_subreddits
|
|
|
|
if subreddit.toLowerCase() === 'saved'
|
|
|
|
a(href="/saved") Saved
|
|
|
|
else
|
|
|
|
a(href="/r/" + subreddit) #{subreddit}
|
2021-01-17 17:44:57 +01:00
|
|
|
a(href="/subreddits", id="sr-more-link") more »
|