mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
[enh] suggestion rendering
This commit is contained in:
parent
e50a72b0e3
commit
33969ca670
@ -136,3 +136,6 @@ tr:hover td { background: #DDDDDD; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
#results { margin-left: 10px; margin-top: 10px; }
|
#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; }
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
{% include 'search.html' %}
|
{% include 'search.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
|
{% if suggestions %}
|
||||||
|
<div id="suggestions">Suggestions: {% for suggestion in suggestions %}<span>{{ suggestion }}</span>{% endfor %}</div>
|
||||||
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
Number of results: {{ number_of_results }}
|
Number of results: {{ number_of_results }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user