From dec1633bfa0d8cf2e4b3ea2eca215a519f72f1dd Mon Sep 17 00:00:00 2001 From: teddit Date: Fri, 23 Apr 2021 21:30:17 +0200 Subject: [PATCH] add search within r/subreddit link to search results (ref #104) --- views/search.pug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/search.pug b/views/search.pug index 90baca2..a3a07c8 100644 --- a/views/search.pug +++ b/views/search.pug @@ -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