commit: a697a1eaa56d05e3b95240cc2f6bd8954b378812
parent 0e1035eac1a3359edb44c998abc7f76d6f7ad985
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sun, 26 Oct 2014 19:20:20 +0100
oscar template: display answers
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html
@@ -6,6 +6,14 @@
<h1 class="sr-only">{{ _('Search results') }}</h1>
{% include 'oscar/search.html' %}
+ {% if answers %}
+ {% for answer in answers %}
+ <div class="result well">
+ <span>{{ answer }}</span>
+ </div>
+ {% endfor %}
+ {% endif %}
+
{% for result in results %}
<div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}">
{% set index = loop.index %}