add search within r/subreddit link to search results (ref #104)

This commit is contained in:
teddit 2021-04-23 21:30:17 +02:00
parent f5d56e77af
commit dec1633bfa
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ html
p.submitted   created
span(title="" + toUTCString(suggested_subreddit.data.created) + "") #{timeDifference(suggested_subreddit.data.created)}
.links
small
a(href="/" + suggested_subreddit.data.display_name_prefixed + "/search?q=" + q + "&nsfw=" + nsfw + "&restrict_sr=on") search within #{suggested_subreddit.data.display_name_prefixed}
if suggested_subreddit.data.over_18
span.tag.nsfw NSFW
a(href="/subreddits/search?q="+ q +"", class="btn") show more similar subreddits