mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 16:49:26 +01:00
mv before & after buttons before search, fix #130
This commit is contained in:
parent
43a11a9e39
commit
748825bcf8
@ -112,6 +112,13 @@ html
|
||||
!= unescape(link.selftext_html)
|
||||
a(href="" + link.permalink + "", class="comments")
|
||||
| #{link.num_comments} comments
|
||||
if json.info.before || json.info.after
|
||||
.view-more-links
|
||||
- var subreddit = 'all'
|
||||
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
||||
- subreddit = user_preferences.subbed_subreddits.join('+')
|
||||
if json.info.after
|
||||
a(href="/r/" + subreddit + "/" + sortby + "?t=" + (past ? past : '') + "&after=" + json.info.after + "") next ›
|
||||
#search
|
||||
form(action="/r/all/search", method="GET")
|
||||
div
|
||||
@ -121,11 +128,4 @@ html
|
||||
label(for="nsfw") include NSFW results
|
||||
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
|
||||
input(type="submit", value="search")
|
||||
if json.info.before || json.info.after
|
||||
.view-more-links
|
||||
- var subreddit = 'all'
|
||||
if(user_preferences.subbed_subreddits && Array.isArray(user_preferences.subbed_subreddits))
|
||||
- subreddit = user_preferences.subbed_subreddits.join('+')
|
||||
if json.info.after
|
||||
a(href="/r/" + subreddit + "/" + sortby + "?t=" + (past ? past : '') + "&after=" + json.info.after + "") next ›
|
||||
include includes/footer.pug
|
||||
|
Loading…
Reference in New Issue
Block a user