mirror of https://github.com/searxng/searxng.git
[enh] submittable suggestions
This commit is contained in:
parent
c16b9729b6
commit
e136832770
|
@ -138,4 +138,5 @@ tr:hover td { background: #DDDDDD; }
|
||||||
#results { margin-left: 10px; margin-top: 10px; }
|
#results { margin-left: 10px; margin-top: 10px; }
|
||||||
|
|
||||||
#suggestions { max-width: 50em;}
|
#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; }
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
{% if suggestions %}
|
{% 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 %}
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
Number of results: {{ number_of_results }}
|
Number of results: {{ number_of_results }}
|
||||||
|
|
Loading…
Reference in New Issue