mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-19 14:38:51 +00:00
Cleanup previous/next page buttons
This commit is contained in:
@@ -22,10 +22,10 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-between mt-4 font-bold">
|
||||
{{#if displayPrev}}
|
||||
{{#noteq page "0"}}
|
||||
<a href="/search?q={{query}}&page={{prevPage}}">Previous page</a>
|
||||
{{/if}}
|
||||
<p>Page {{page}}</p>
|
||||
{{/noteq}}
|
||||
<p>Page {{nextPage}}</p>
|
||||
<a href="/search?q={{query}}&page={{nextPage}}">Next page</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -65,9 +65,9 @@
|
||||
</div>
|
||||
|
||||
<div class="flex justify-between mt-4 font-bold">
|
||||
{{#if displayPrev}}
|
||||
{{#noteq page "1"}}
|
||||
<a href="/trending?section={{section}}&sort={{sort}}&page={{prevPage}}">Previous page</a>
|
||||
{{/if}}
|
||||
{{/noteq}}
|
||||
<p>Page {{page}}</p>
|
||||
<a href="/trending?section={{section}}&sort={{sort}}&page={{nextPage}}">Next page</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user