From c01a70c86b44da09cd7177836ff625730bb20932 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 9 Sep 2023 16:42:34 +0000 Subject: [PATCH] add sort by oldest --- html/channel.ejs | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/html/channel.ejs b/html/channel.ejs index e3f15ed..d54c673 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -877,11 +877,15 @@ width: fit-content; Popular - + + Oldest + + <% } %> <% if (sort) { %> - <% if (sort != "newest") { %> + <% if (sort === "popular") { %> @@ -890,8 +894,33 @@ width: fit-content; Popular + + + + Oldest <% } %> + + + <% if (sort === "oldest") { %> + + + Recently Uploaded + + + + Popular + + + + Oldest + + <% } %> + <% } %>