From f34ac58752b3857468d01c79d7bc3409e8b03fe3 Mon Sep 17 00:00:00 2001 From: Dalf Date: Tue, 6 Aug 2019 11:41:16 +0200 Subject: [mod] tidy oscar HTML output --- searx/templates/oscar/results.html | 312 ++++++++++++++++++------------------- 1 file changed, 156 insertions(+), 156 deletions(-) (limited to 'searx/templates/oscar/results.html') diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index fce7f97d6..a33d5b895 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -1,156 +1,156 @@ -{% extends "oscar/base.html" %} -{% macro search_form_attrs(pageno) -%} - {% for category in selected_categories %}{% endfor %} - - - - - {% if timeout_limit %}{% endif %} -{%- endmacro %} -{%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} - -{% block title %}{{ q|e }} - {% endblock %} -{% block meta %}{% endblock %} -{% block content %} - {% include 'oscar/search.html' %} -
-
-

{{ _('Search results') }}

- - {% if corrections %} -
- {{ _('Try searching for:') }} - {% for correction in corrections %} - - {% endfor %} -
- {% endif %} - - {% if answers %} - {% for answer in answers %} -
- {{ answer }} -
- {% endfor %} - {% endif %} - - {% for result in results %} -
- {% set index = loop.index %} - {% if result.template %} - {% include get_result_template('oscar', result['template']) %} - {% else %} - {% include 'oscar/result_templates/default.html' %} - {% endif %} -
- {% endfor %} - - {% if not results and not answers %} - {% include 'oscar/messages/no_results.html' %} - {% endif %} - -
- - {% if paging %} - {% if rtl %} - -
- {% else %} - -
- {% endif %} - {% endif %} -
- - -
-{% endblock %} +{% extends "oscar/base.html" %} +{% macro search_form_attrs(pageno) -%} + {%- for category in selected_categories -%}{%- endfor -%} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} + {% if timeout_limit %}{% endif -%} +{%- endmacro %} +{%- macro search_url() %}{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} + +{% block title %}{{ q|e }} - {% endblock %} +{% block meta %}{{" "}}{% endblock %} +{% block content %} + {% include 'oscar/search.html' %} + +
+
+

{{ _('Search results') }}

+ + {% if corrections -%} +
+ {{ _('Try searching for:') }} + {% for correction in corrections -%} + + {% endfor %} +
+ {%- endif %} + + {% if answers -%} + {%- for answer in answers %} +
+ {{ answer }} +
+ {%- endfor %} + {%- endif %} + + {% for result in results -%} +
+ {%- set index = loop.index -%} + {%- if result.template -%} + {% include get_result_template('oscar', result['template']) %} + {%- else -%} + {% include 'oscar/result_templates/default.html' %} + {%- endif -%} +
+ {% endfor %} + + {% if not results and not answers -%} + {% include 'oscar/messages/no_results.html' %} + {% endif %} + +
+ + {% if paging -%} + {% if rtl %} + +
+ {% else %} + +
+ {% endif %} + {% endif %} +
+ + +
+{% endblock %} -- cgit v1.2.3