add sort by oldest

This commit is contained in:
Ashley 2023-09-09 16:42:34 +00:00
parent 18edb4b110
commit c01a70c86b

View file

@ -877,11 +877,15 @@ width: fit-content;
Popular Popular
</a> </a>
<a href="/channel?id=<%=ID%>&sort_by=oldest" style="color:#fff;text-decoration:none;
" class="tag c">
Oldest
</a>
<% } %> <% } %>
<% if (sort) { %> <% if (sort) { %>
<% if (sort != "newest") { %> <% if (sort === "popular") { %>
<a href="/channel?id=<%=ID%>" style="color:#fff;text-decoration:none; <a href="/channel?id=<%=ID%>" style="color:#fff;text-decoration:none;
" class="tag c" > " class="tag c" >
@ -890,8 +894,33 @@ width: fit-content;
<a style="background:var(--chip-background-hover)" class="tag"> <a style="background:var(--chip-background-hover)" class="tag">
Popular Popular
</a>
<a href="/channel?id=<%=ID%>&sort_by=oldest" style="color:#fff;text-decoration:none;
" class="tag c">
Oldest
</a> </a>
<% } %> <% } %>
<% if (sort === "oldest") { %>
<a href="/channel?id=<%=ID%>" style="color:#fff;text-decoration:none;
" class="tag c" >
Recently Uploaded
</a>
<a href="/channel?id=<%=ID%>&sort_by=popular" style="color:#fff;text-decoration:none;
" class="tag">
Popular
</a>
<a style="background:var(--chip-background-hover)
" class="tag c">
Oldest
</a>
<% } %>
<% } %> <% } %>