mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[enh] search form @ results page
This commit is contained in:
parent
e91e4e7fdb
commit
62f6d34b95
@ -1,6 +1,9 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% 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 %}
|
{% for result in results %}
|
||||||
<p>{{ result|safe }}</p>
|
<p>{{ result|safe }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -57,7 +57,7 @@ def index():
|
|||||||
)
|
)
|
||||||
requests.append(req)
|
requests.append(req)
|
||||||
grequests.map(requests)
|
grequests.map(requests)
|
||||||
return render_template('results.html', results=results)
|
return render_template('results.html', results=results, q=query)
|
||||||
|
|
||||||
|
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
Loading…
Reference in New Issue
Block a user