diff options
| author | asciimoo <asciimoo@gmail.com> | 2013-11-15 01:00:00 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2013-11-15 01:00:00 +0100 |
| commit | e13683277084fd2e04fa0a476edad0e87d1ef6ac (patch) | |
| tree | c1e2692fb7cd1ff083bee668f5ce0b4d0ad6efe7 /searx | |
| parent | c16b9729b60fd9d206ab8bce30fc2991f37b775a (diff) | |
[enh] submittable suggestions
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/static/css/style.css | 3 | ||||
| -rw-r--r-- | searx/templates/results.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/searx/static/css/style.css b/searx/static/css/style.css index 8405466be..c52d53ee6 100644 --- a/searx/static/css/style.css +++ b/searx/static/css/style.css @@ -138,4 +138,5 @@ tr:hover td { background: #DDDDDD; } #results { margin-left: 10px; margin-top: 10px; } #suggestions { max-width: 50em;} -#suggestions span { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; } +#suggestions form { display: inline; } +#suggestions input { padding: 2px 6px; margin: 2px 4px; font-size: 0.8em; display: inline-block; background: #E4E4E4; border-radius: 4px; border: 0; } diff --git a/searx/templates/results.html b/searx/templates/results.html index df9410eb4..f130f5bc5 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -6,7 +6,7 @@ </div> <div id="results"> {% if suggestions %} - <div id="suggestions">Suggestions: {% for suggestion in suggestions %}<span>{{ suggestion }}</span>{% endfor %}</div> + <div id="suggestions">Suggestions: {% for suggestion in suggestions %}<form method="post" action=""><input type="hidden" name="q" value="{{suggestion}}"><input type="submit" value="{{ suggestion }}" /></form>{% endfor %}</div> {% endif %} <div> Number of results: {{ number_of_results }} |