From d4d42b423c6a3f4f8308da4afbf425f433f145ec Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 24 Mar 2022 18:18:19 +0100 Subject: [PATCH] Search_url only if method is POST Shows search_url only if method is set to POST. --- searx/templates/simple/results.html | 26 +++++++++++++++-------- searx/templates/simple/simple_search.html | 8 +++++++ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index eb45ac742..b05841bbb 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -70,8 +70,11 @@ {% for suggestion in suggestions %}
- + {% for category in selected_categories %} + + {% endfor %} + {% if timeout_limit %}{% endif %} @@ -82,10 +85,12 @@ {% endif %} + {% if method == 'POST' %} + {% endif %}
@@ -149,16 +157,16 @@
- {{- engine_data_form(engine_data) -}} {% for category in selected_categories %} {% endfor %} - + {% if timeout_limit %}{% endif %} + {{- engine_data_form(engine_data) -}}
@@ -166,16 +174,16 @@
- {{- engine_data_form(engine_data) -}} {% for category in selected_categories %} {% endfor %} - + {% if timeout_limit %}{% endif %} + {{- engine_data_form(engine_data) -}}
diff --git a/searx/templates/simple/simple_search.html b/searx/templates/simple/simple_search.html index 218f70496..3fd07abc5 100644 --- a/searx/templates/simple/simple_search.html +++ b/searx/templates/simple/simple_search.html @@ -6,4 +6,12 @@ + {% for category in selected_categories %} + + {% endfor %} + + + + + {% if timeout_limit %}{% endif %}