mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 19:31:00 +00:00
oscar template: display answers
This commit is contained in:
parent
0e1035eac1
commit
a697a1eaa5
1 changed files with 8 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue