From 5f5397e9e3ae8c9f5f6a559e6f98e6a0fbc85824 Mon Sep 17 00:00:00 2001 From: teddit Date: Tue, 5 Jan 2021 02:51:38 +0100 Subject: [PATCH] add wiki links to subreddit view --- views/subreddit.pug | 2 ++ views/subreddit_wiki.pug | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/views/subreddit.pug b/views/subreddit.pug index db7e360..681b6c6 100644 --- a/views/subreddit.pug +++ b/views/subreddit.pug @@ -48,6 +48,8 @@ html a(href="/r/" + subreddit + "/controversial") controversial li(class=sortby === 'top' ? 'active' : '') a(href="/r/" + subreddit + "/top") top + li + a(href="/r/" + subreddit + "/wiki") wiki #links.sr if sortby === 'top' || sortby === 'controversial' details diff --git a/views/subreddit_wiki.pug b/views/subreddit_wiki.pug index 836d2c4..9d2d2a6 100644 --- a/views/subreddit_wiki.pug +++ b/views/subreddit_wiki.pug @@ -15,7 +15,20 @@ html h1 teddit .bottom a(href="/r/" + subreddit + "", class="subreddit") - h2 wiki - #{subreddit} - .wiki-content + h2 #{subreddit} + ul.tabmenu + li + a(href="/r/" + subreddit) hot + li + a(href="/r/" + subreddit + "/new") new + li + a(href="/r/" + subreddit + "/rising") rising + li + a(href="/r/" + subreddit + "/controversial") controversial + li + a(href="/r/" + subreddit + "/top") top + li(class="active") + a(href="/r/" + subreddit + "/wiki") wiki + .wiki-page.wiki-content != content_html include includes/footer.pug