aboutsummaryrefslogtreecommitdiff
path: root/templates/images.html
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-02-24 01:30:46 -0500
committerfrosty <gabriel@bwaaa.monster>2026-02-24 01:30:46 -0500
commit7b595962d4757f982dee0985ad23b992fbe6b3fb (patch)
tree304922f7d6a4d16224eb8b69ca0af7559fe4bc0c /templates/images.html
parentb280ab6bcdf6c9bae46a7a21b7138d46d953dd71 (diff)
downloadomnisearch-7b595962d4757f982dee0985ad23b992fbe6b3fb.tar.gz
added pagination to image search
Diffstat (limited to 'templates/images.html')
-rw-r--r--templates/images.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/images.html b/templates/images.html
index fd4915a..2f1bb40 100644
--- a/templates/images.html
+++ b/templates/images.html
@@ -60,6 +60,15 @@
</div>
{{endfor}}
</div>
+ <nav class="pagination">
+ <a class="pagination-btn prev" href="/images?q={{query}}&p={{prev_page}}">
+ &larr; Page {{prev_page}}
+ </a>
+ <span class="pagination-current">Page {{page}}</span>
+ <a class="pagination-btn next" href="/images?q={{query}}&p={{next_page}}">
+ Page {{next_page}} &rarr;
+ </a>
+ </nav>
</main>
</body>