1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 01:14:38 -05:00

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