diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-02-10 15:23:56 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-02-10 15:23:56 +0100 |
commit | df9cf9d09bf4496a9e5d799bd99437a3224a06d4 (patch) | |
tree | f5e02ae4c0446f703e5c6c112d631add591a693f /searx/templates/oscar/results.html | |
parent | c711212662996e232a1d3bc692f6f765e1467125 (diff) | |
download | searxng-df9cf9d09bf4496a9e5d799bd99437a3224a06d4.tar.gz searxng-df9cf9d09bf4496a9e5d799bd99437a3224a06d4.zip |
Merge branch 'rtl' of github.com:Cqoicebordel/searx
Diffstat (limited to 'searx/templates/oscar/results.html')
-rw-r--r-- | searx/templates/oscar/results.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index b60c977a5..8303573f0 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -33,6 +33,27 @@ <div class="clearfix"></div>
{% if paging %}
+ {% if rtl %}
+ <div id="pagination">
+ <div class="pull-left">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
+ <input type="hidden" name="q" value="{{ q }}" />
+ {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
+ <input type="hidden" name="q" value="{{ q }}" />
+ <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
+ <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-backward"></span> {{ _('next page') }}</button>
+ </form>
+ </div>
+ <div class="pull-right">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
+ {% for category in selected_categories %}<input type="hidden" name="category_{{ category }}" value="1"/>{% endfor %}
+ <input type="hidden" name="pageno" value="{{ pageno-1 }}" />
+ <button type="submit" class="btn btn-default" {% if pageno == 1 %}disabled{% endif %}><span class="glyphicon glyphicon-forward"></span> {{ _('previous page') }}</button>
+ </form>
+ </div>
+ </div><!-- /#pagination -->
+ <div class="clearfix"></div>
+ {% else %}
<div id="pagination">
<div class="pull-left">
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" class="pull-left">
@@ -53,6 +74,7 @@ </div><!-- /#pagination -->
<div class="clearfix"></div>
{% endif %}
+ {% endif %}
</div><!-- /#main_results -->
<div class="col-sm-4" id="sidebar_results">
|