From 3ba0d0516e5cabce8ebcc9a27c0fe069fa23f52c Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Aug 2018 16:13:50 +0200 Subject: simple theme update - npm package update - apply #1226 - implement vim help dialog - display cookies and search URL with preferences - allow to enable / disable Open Access DOI rewrite - add a clear text button on the left of the search button - implement #1011 : the HTML title page is not set when using POST - remove searx/static/themes/simple/img/loader.gif - use full width when only there are only images as result --- searx/templates/simple/results.html | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'searx/templates/simple/results.html') diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 081118eaf..195c478db 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -1,18 +1,25 @@ {% extends "simple/base.html" %} {% from 'simple/macros.html' import icon, icon_small %} -{% block title %}{{ q|e }} - {% endblock %} +{% block title %}{% if method == 'GET' %}{{- q|e -}} -{% endif %}{% endblock %} {% block meta %}{% endblock %} {% block content %} {% include 'simple/search.html' %} -
- {% if answers %} + +{% if results and results|map(attribute='template')|unique|list|count == 1 %} + {% set only_template = 'only_template_' + results[0]['template']|default('default')|replace('.html', '') %} +{% else %} + {% set unique_template = '' %} +{% endif %} + +
+ {% if answers -%}

{{ _('Answers') }} :

- {% for answer in answers -%} -
{{ answer }}
- {%- endfor %} + {%- for answer in answers -%} +
{{- answer -}}
+ {%- endfor -%}
- {% endif %} + {%- endif %}