From f3256f7b936b64365330ca52c7e35c2ee8a1ce67 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 10 Sep 2023 18:04:48 +0000 Subject: [PATCH] add video sorting :3 --- html/channel.ejs | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/html/channel.ejs b/html/channel.ejs index d54c6730..99f98df0 100644 --- a/html/channel.ejs +++ b/html/channel.ejs @@ -928,6 +928,76 @@ width: fit-content; <% } %> + <% if (isMobile) { %> + +
+ Sort by + +
+ <% if (sort == "newest") { %> + + + Recently Uploaded + + + + + Popular + + + + Oldest + + + <% } %> + <% if (sort) { %> + + <% if (sort === "popular") { %> + + + Recently Uploaded + + + + Popular + + + + Oldest + + <% } %> + + + <% if (sort === "oldest") { %> + + + Recently Uploaded + + + + Popular + + + + Oldest + + <% } %> + + <% } %> + + +
+ + + <% } %> +