summaryrefslogtreecommitdiff
path: root/searx/templates/results.html
diff options
context:
space:
mode:
authorMatej Cotman <cotman.matej@gmail.com>2014-03-29 16:45:22 +0100
committerMatej Cotman <cotman.matej@gmail.com>2014-03-29 16:50:48 +0100
commit32e98967b76df8088a5759c90650ae65808932bc (patch)
tree112714c00ef4b4dcc21080ede436cb74ec273c5f /searx/templates/results.html
parent879bac8adb181593989a132fabd607f50096473a (diff)
add optional request with GET method for search and results pages
Diffstat (limited to 'searx/templates/results.html')
-rw-r--r--searx/templates/results.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html
index 8094e96b6..97c2696c8 100644
--- a/searx/templates/results.html
+++ b/searx/templates/results.html
@@ -10,7 +10,7 @@
{% if suggestions %}
<div id="suggestions"><span>{{ _('Suggestions') }}</span>
{% for suggestion in suggestions %}
- <form method="post" action="{{ url_for('index') }}">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<input type="hidden" name="q" value="{{ suggestion }}">
<input type="submit" value="{{ suggestion }}" />
</form>
@@ -25,7 +25,7 @@
<div id="apis">
{{ _('Download results') }}
{% for output_type in ('csv', 'json', 'rss') %}
- <form method="post" action="{{ url_for('index') }}">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<div class="left">
<input type="hidden" name="q" value="{{ q }}" />
<input type="hidden" name="format" value="{{ output_type }}" />
@@ -52,7 +52,7 @@
{% if paging %}
<div id="pagination">
{% if pageno > 1 %}
- <form method="post" action="{{ url_for('index') }}">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<div class="left">
<input type="hidden" name="q" value="{{ q }}" />
{% for category in selected_categories %}
@@ -63,7 +63,7 @@
</div>
</form>
{% endif %}
- <form method="post" action="{{ url_for('index') }}">
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<div class="left">
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>