From 072ce098a6dd8912defd3cc8d46db8e9d4edfda2 Mon Sep 17 00:00:00 2001 From: teddit Date: Mon, 30 Nov 2020 16:36:10 +0100 Subject: [PATCH] fix sorting order --- views/index.pug | 8 ++++---- views/subreddit.pug | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/views/index.pug b/views/index.pug index 7b219bb..ecdddc4 100644 --- a/views/index.pug +++ b/views/index.pug @@ -31,10 +31,10 @@ html if sortby === 'top' || sortby === 'controversial' details summary - if past === 'day' - span links from: past 24 hours if past === 'hour' span links from: past hour + if past === 'day' + span links from: past 24 hours if past === 'week' span links from: past week if past === 'month' @@ -44,10 +44,10 @@ html if past === 'all' span links from: all time ul - li(class=past === 'day' ? 'active' : '') - a(href="?t=day") past 24 hours li(class=past === 'hour' ? 'active' : '') a(href="?t=hour") past hour + li(class=past === 'day' ? 'active' : '') + a(href="?t=day") past 24 hours li(class=past === 'week' ? 'active' : '') a(href="?t=week") past week li(class=past === 'month' ? 'active' : '') diff --git a/views/subreddit.pug b/views/subreddit.pug index 5011786..1b0b45e 100644 --- a/views/subreddit.pug +++ b/views/subreddit.pug @@ -33,10 +33,10 @@ html if sortby === 'top' || sortby === 'controversial' details summary - if past === 'day' - span links from: past 24 hours if past === 'hour' span links from: past hour + if past === 'day' + span links from: past 24 hours if past === 'week' span links from: past week if past === 'month' @@ -46,10 +46,10 @@ html if past === 'all' span links from: all time ul - li(class=past === 'day' ? 'active' : '') - a(href="?t=day") past 24 hours li(class=past === 'hour' ? 'active' : '') a(href="?t=hour") past hour + li(class=past === 'day' ? 'active' : '') + a(href="?t=day") past 24 hours li(class=past === 'week' ? 'active' : '') a(href="?t=week") past week li(class=past === 'month' ? 'active' : '')