summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-15 00:02:55 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-15 00:02:55 +0200
commit62f6d34b957638a47a25d41eebcf3466a97b31f0 (patch)
treeb78a6cf077692789517c772ed0185a479584bbff
parente91e4e7fdbbdef49b19011ff8d7efa34fa55be3b (diff)
downloadsearxng-62f6d34b957638a47a25d41eebcf3466a97b31f0.tar.gz
searxng-62f6d34b957638a47a25d41eebcf3466a97b31f0.zip
[enh] search form @ results page
-rw-r--r--searx/templates/results.html5
-rw-r--r--searx/webapp.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html
index c7851461a..105624034 100644
--- a/searx/templates/results.html
+++ b/searx/templates/results.html
@@ -1,6 +1,9 @@
{% extends "base.html" %}
{% block content %}
-<h1>searx</h1>
+<form method="post" action="">
+ <input type="text" name="q" value="{{ q }}"/>
+ <input type="submit" value="search" />
+</form>
{% for result in results %}
<p>{{ result|safe }}</p>
{% endfor %}
diff --git a/searx/webapp.py b/searx/webapp.py
index 7af697275..c9067972c 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -57,7 +57,7 @@ def index():
)
requests.append(req)
grequests.map(requests)
- return render_template('results.html', results=results)
+ return render_template('results.html', results=results, q=query)
return render_template('index.html')