summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-01-18 23:49:01 +0100
committerGitHub <noreply@github.com>2017-01-18 23:49:01 +0100
commitb1d49bacb0d6135a7c0a5a32a82681b12b1762cd (patch)
tree4c82ca611f822807beef6843770a97cce4d7d8fd /searx/templates
parent1a9f8240b851c64a10be7b8990b6f3926ca506b3 (diff)
parent1d30141c207e51c142cab3eee97783f08c1cb5c9 (diff)
Merge pull request #827 from davidar/spell
[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">