mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-02-15 21:16:16 +00:00
implement random gallery (#245)
closes #229 Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/245 Co-authored-by: orangix <uleo8b8g@anonaddy.me> Co-committed-by: orangix <uleo8b8g@anonaddy.me>
This commit is contained in:
committed by
video-prize-ranch
parent
33fa04e98d
commit
61a312aba0
@@ -30,20 +30,35 @@
|
||||
<a href="?section=hot&sort={{sort}}"><b>Hot</b></a>
|
||||
<a href="?section=new&sort={{sort}}">New</a>
|
||||
<a href="?section=top&sort={{sort}}">Top</a>
|
||||
<a href="?section=random&sort=random">Random</a>
|
||||
{{/equal}}
|
||||
{{#equal section "new"}}
|
||||
<a href="?section=hot&sort={{sort}}">Hot</a>
|
||||
<a href="?section=new&sort={{sort}}"><b>New</b></a>
|
||||
<a href="?section=top&sort={{sort}}">Top</a>
|
||||
<a href="?section=random&sort=random">Random</a>
|
||||
{{/equal}}
|
||||
{{#equal section "top"}}
|
||||
<a href="?section=hot&sort={{sort}}">Hot</a>
|
||||
<a href="?section=new&sort={{sort}}">New</a>
|
||||
<a href="?section=top&sort={{sort}}"><b>Top</b></a>
|
||||
<a href="?section=random&sort=random">Random</a>
|
||||
{{/equal}}
|
||||
{{#equal section "random"}}
|
||||
<a href="?section=hot&sort={{sort}}">Hot</a>
|
||||
<a href="?section=new&sort={{sort}}">New</a>
|
||||
<a href="?section=top&sort={{sort}}">Top</a>
|
||||
<a href="?section=random&sort=random"><b>Random</b></a>
|
||||
{{/equal}}
|
||||
</div>
|
||||
<hr class="sm:hidden my-2" />
|
||||
<div class="flex flex-col sm:items-end">
|
||||
{{#equal section "random"}}
|
||||
<a href="?section=hot&sort=popular">Popular</a>
|
||||
<a href="?section=hot&sort=newest">Newest</a>
|
||||
<a href="?section=hot&sort=best">Best</a>
|
||||
{{/equal}}
|
||||
{{#noteq section "random"}}
|
||||
{{#equal sort "popular"}}
|
||||
<a href="?section={{section}}&sort=popular"><b>Popular</b></a>
|
||||
<a href="?section={{section}}&sort=newest">Newest</a>
|
||||
@@ -59,6 +74,7 @@
|
||||
<a href="?section={{section}}&sort=newest">Newest</a>
|
||||
<a href="?section={{section}}&sort=best"><b>Best</b></a>
|
||||
{{/equal}}
|
||||
{{/noteq}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user