mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-14 04:05:14 +00:00
Cleanup previous/next page buttons (#134)
Use noteq to simplify code, add current page to previous/next page bar Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/134 Reviewed-by: orangix <orangix@noreply.codeberg.org> Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co> Co-committed-by: video-prize-ranch <cb.8a3w5@simplelogin.co>
This commit is contained in:
committed by
video-prize-ranch
parent
0fea1e46a3
commit
fc88bfbca5
@@ -45,10 +45,11 @@
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div class="mt-4 font-bold">
|
||||
{{#if displayPrev}}
|
||||
<div class="flex justify-between mt-4 font-bold">
|
||||
{{#noteq page "1"}}
|
||||
<a href="{{channel.RelUrl}}?page={{prevPage}}">Previous page</a>
|
||||
{{/if}}
|
||||
{{/noteq}}
|
||||
<p>Page {{nextPage}}</p>
|
||||
<a href="{{channel.RelUrl}}?page={{nextPage}}">Next page</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user