diff --git a/searx/static/css/style.css b/searx/static/css/style.css index 5871e0198..8405466be 100644 --- a/searx/static/css/style.css +++ b/searx/static/css/style.css @@ -136,3 +136,6 @@ 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; } 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' %}
-
- Number of results: {{ number_of_results }} -
+ {% if suggestions %} +
Suggestions: {% for suggestion in suggestions %}{{ suggestion }}{% endfor %}
+ {% endif %} +
+ Number of results: {{ number_of_results }} +
{% for result in results %} {% if result['template'] %} {% include 'result_templates/'+result['template'] %}