aboutsummaryrefslogtreecommitdiff
path: root/templates/results.html
diff options
context:
space:
mode:
authorGustavo dos Santos <gustavobarbosavs@gmail.com>2026-03-18 11:46:05 +0000
committerfrosty <gabriel@bwaaa.monster>2026-03-18 08:21:42 -0400
commitf17171d3e1339a11e1db8597de75bf12325ea0ea (patch)
tree87d6f87a876ef41b7a4f70610b54330204a16242 /templates/results.html
parent81ba9021a24254b8c3c4bbb21c6c0a8d07c3de68 (diff)
downloadomnisearch-f17171d3e1339a11e1db8597de75bf12325ea0ea.tar.gz
Updated the page buttons
Diffstat (limited to 'templates/results.html')
-rw-r--r--templates/results.html39
1 files changed, 36 insertions, 3 deletions
diff --git a/templates/results.html b/templates/results.html
index 759213b..1bda9e4 100644
--- a/templates/results.html
+++ b/templates/results.html
@@ -54,11 +54,44 @@
<nav class="pagination">
<a class="pagination-btn prev" href="/search?q={{query}}&p={{prev_page}}">
- &larr; Page {{prev_page}}
+ &larr;
</a>
- <span class="pagination-current">Page {{page}}</span>
+
+ {{if two_prev_page != 0}}
+ <a class="pagination-btn prev" href="/search?q={{query}}&p={{two_prev_page}}">
+ {{two_prev_page}}
+ </a>
+ {{endif}}
+
+ {{if prev_page != 0}}
+ <a class="pagination-btn prev" href="/search?q={{query}}&p={{prev_page}}">
+ {{prev_page}}
+ </a>
+ {{endif}}
+
+ <a class="pagination-current" href="/search?q={{query}}&p={{page}}">
+ {{page}}
+ </a>
+ <a class="pagination-btn next" href="/search?q={{query}}&p={{next_page}}">
+ {{next_page}}
+ </a>
+ <a class="pagination-btn next" href="/search?q={{query}}&p={{two_next_page}}">
+ {{two_next_page}}
+ </a>
+
+ {{if prev_page == 0}}
+ <a class="pagination-btn prev" href="/search?q={{query}}&p=4">
+ 4
+ </a>
+ {{endif}}
+
+ {{if two_prev_page == 0}}
+ <a class="pagination-btn prev" href="/search?q={{query}}&p=5">
+ 5
+ </a>
+ {{endif}}
<a class="pagination-btn next" href="/search?q={{query}}&p={{next_page}}">
- Page {{next_page}} &rarr;
+ &rarr;
</a>
</nav>
</main>