summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/results.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-01-27 13:47:59 +0000
committerGitHub <noreply@github.com>2017-01-27 13:47:59 +0000
commite67dfaaac7991b299dd9c33ae69e7028cd8f6589 (patch)
tree506ed1dd4a527e37c902035d84215ed2be2577d9 /searx/templates/oscar/results.html
parent7a16aca346c14994f304a6961c55b63ab260265a (diff)
parentee1d44caf9bb9b0fb1b3bafbcbff74486b5449e8 (diff)
Merge branch 'master' into flask_perimeter
Diffstat (limited to 'searx/templates/oscar/results.html')
-rw-r--r--searx/templates/oscar/results.html23
1 files changed, 14 insertions, 9 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
index f5e95438d..457b93ee5 100644
--- a/searx/templates/oscar/results.html
+++ b/searx/templates/oscar/results.html
@@ -11,10 +11,22 @@
{% block title %}{{ q|e }} - {% endblock %}
{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ search_url() }}&amp;format=rss">{% endblock %}
{% block content %}
+ {% include 'oscar/search.html' %}
<div class="row">
<div class="col-sm-8" id="main_results">
<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 %}
@@ -80,14 +92,7 @@
<div class="col-sm-4" id="sidebar_results">
{% if number_of_results != '0' %}
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">{{ _('Number of results') }}</h4>
- </div>
- <div class="panel-body">
- {{ number_of_results }}
- </div>
- </div>
+ <p><small>{{ _('Number of results') }}: {{ number_of_results }}</small></p>
{% endif %}
{% if infoboxes %}
{% for infobox in infoboxes %}