mirror of
https://github.com/searx/searx
synced 2025-09-03 16:06:05 +00:00
oscar template: display answers
This commit is contained in:
@@ -6,6 +6,14 @@
|
|||||||
<h1 class="sr-only">{{ _('Search results') }}</h1>
|
<h1 class="sr-only">{{ _('Search results') }}</h1>
|
||||||
{% include 'oscar/search.html' %}
|
{% include 'oscar/search.html' %}
|
||||||
|
|
||||||
|
{% if answers %}
|
||||||
|
{% for answer in answers %}
|
||||||
|
<div class="result well">
|
||||||
|
<span>{{ answer }}</span>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}">
|
<div class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %}">
|
||||||
{% set index = loop.index %}
|
{% set index = loop.index %}
|
||||||
|
Reference in New Issue
Block a user