summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorDavid A Roberts <d@vidr.cc>2017-01-14 18:40:37 +1000
committerDavid A Roberts <d@vidr.cc>2017-01-16 13:31:16 +1000
commit1d30141c207e51c142cab3eee97783f08c1cb5c9 (patch)
treeb3e07ba1168d274b3b789721270bac20edb30432 /searx/templates
parentd6cbc6b78be5e97cae8a12fb18ace9d51be5df55 (diff)
downloadsearxng-1d30141c207e51c142cab3eee97783f08c1cb5c9.tar.gz
searxng-1d30141c207e51c142cab3eee97783f08c1cb5c9.zip
[enh] show spelling corrections
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/results.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
index f5e95438d..11c950b9e 100644
--- a/searx/templates/oscar/results.html
+++ b/searx/templates/oscar/results.html
@@ -16,6 +16,18 @@
<h1 class="sr-only">{{ _('Search results') }}</h1>
{% include 'oscar/search.html' %}
+ {% if corrections %}
+ <div class="result">
+ <span class="result_header text-muted form-inline pull-left suggestion_item">{{ _('Try searching for:') }}</span>
+ {% for correction in corrections %}
+ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" role="navigation" class="form-inline pull-left suggestion_item">
+ <input type="hidden" name="q" value="{{ correction }}">
+ <button type="submit" class="btn btn-default btn-xs">{{ correction }}</button>
+ </form>
+ {% endfor %}
+ </div>
+ {% endif %}
+
{% if answers %}
{% for answer in answers %}
<div class="result well">