summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-11-13 19:35:32 +0100
committerasciimoo <asciimoo@gmail.com>2013-11-13 19:35:32 +0100
commit33969ca670408a6b049c68db76460ba09d4ea032 (patch)
treed69b7bc44be7f4c0b06d984de2fbc174c822c79b /searx/templates
parente50a72b0e34a0c9d5d377f19dafcf717876ab6b0 (diff)
downloadsearxng-33969ca670408a6b049c68db76460ba09d4ea032.tar.gz
searxng-33969ca670408a6b049c68db76460ba09d4ea032.zip
[enh] suggestion rendering
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/results.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html
index 40c20325c..df9410eb4 100644
--- a/searx/templates/results.html
+++ b/searx/templates/results.html
@@ -5,9 +5,12 @@
{% include 'search.html' %}
</div>
<div id="results">
-<div>
- Number of results: {{ number_of_results }}
-</div>
+ {% if suggestions %}
+ <div id="suggestions">Suggestions: {% for suggestion in suggestions %}<span>{{ suggestion }}</span>{% endfor %}</div>
+ {% endif %}
+ <div>
+ Number of results: {{ number_of_results }}
+ </div>
{% for result in results %}
{% if result['template'] %}
{% include 'result_templates/'+result['template'] %}