oscar template: display answers
commita697a1eaa56d05e3b95240cc2f6bd8954b378812
authorThomas Pointhuber <thomas.pointhuber@gmx.at>
dateSun 26 Oct 2014, 19:20 (12 years ago)
parent0e1035e
searx/templates/oscar/results.html+8
@@ -6,6 +6,14 @@
66 <h1 class="sr-only">{{ _('Search results') }}</h1>
77 {% include 'oscar/search.html' %}
88
9+ {% if answers %}
10+ {% for answer in answers %}
11+ <div class="result well">
12+ <span>{{ answer }}</span>
13+ </div>
14+ {% endfor %}
15+ {% endif %}
16+
917 {% for result in results %}
1018 <div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}">
1119 {% set index = loop.index %}