mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[enh] paging support
This commit is contained in:
parent
93b5ecdc75
commit
8bb94e3dc4
4 changed files with 41 additions and 10 deletions
|
|
@ -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="/">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue