summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-29 20:52:04 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-29 20:52:04 +0100
commit8bb94e3dc4c35042ec5fb16f412331f4b8ca6c8a (patch)
tree827dd9b5c248e39a62301c782ffaa2603c0a32b5 /searx/templates
parent93b5ecdc756d0fc81d72d0f85b6d24af32a081cf (diff)
downloadsearxng-8bb94e3dc4c35042ec5fb16f412331f4b8ca6c8a.tar.gz
searxng-8bb94e3dc4c35042ec5fb16f412331f4b8ca6c8a.zip
[enh] paging support
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/results.html26
1 files changed, 22 insertions, 4 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html
index 238671878..fc5527296 100644
--- a/searx/templates/results.html
+++ b/searx/templates/results.html
@@ -11,10 +11,6 @@
{% endif %}
- <div id ="result_count">
- {{ _('Number of results') }}: {{ number_of_results }}
- </div>
-
{% for result in results %}
{% if result['template'] %}
{% include 'result_templates/'+result['template'] %}
@@ -22,6 +18,28 @@
{% include 'result_templates/default.html' %}
{% endif %}
{% endfor %}
+
+ {% if paging %}
+ <div id="paging">
+ {% if pageno > 1 %}
+ <form method="post" action="/">
+ <div class="left">
+ <input type="hidden" name="q" value="{{ q }}" />
+ <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
+ <input type="submit" value="<< {{ _('previous page') }}" />
+ </div>
+ </form>
+ {% endif %}
+ <form method="post" action="/">
+ <div class="left">
+ <input type="hidden" name="q" value="{{ q }}" />
+ <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
+ <input type="submit" value="{{ _('next page') }} >>" />
+ </div>
+ </form>
+ </div>
+ {% endif %}
+
<div id="apis">
{{ _('Download results') }}
<form method="post" action="/">