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/macros.html | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'searx/templates/oscar/macros.html') diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 5f6463642..d2d1dc643 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -26,38 +26,38 @@ {% macro result_footer(result) -%} -
+
{{- "" -}}
- {% for engine in result.engines %} - {{ engine }} - {% endfor %} - {% if result.url %} - {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }} - {% endif %} - {% if proxify %} - {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {% endif %} -
-{% if result.pretty_url %} - -{% endif %} + {%- for engine in result.engines -%} + {{ engine }} + {%- endfor -%} + {%- if result.url -%} + {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }} + {%- endif -%} + {%- if proxify -%} + {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} + {%- endif -%} + + {%- if result.pretty_url -%} + + {%- endif -%} {%- endmacro %} {% macro result_footer_rtl(result) -%} -
- {% for engine in result.engines %} +
{{- "" -}} + {% for engine in result.engines -%} {{ engine }} - {% endfor %} - {% if result.url %} + {%- endfor %} + {%- if result.url -%} {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info") }} - {% endif %} - {% if proxify %} + {%- endif -%} + {% if proxify -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {% endif %} - {% if result.pretty_url %} + {%- endif %} + {%- if result.pretty_url -%} - {% endif %} + {%- endif %} {%- endmacro %} {% macro preferences_item_header(info, label, rtl) -%} -- cgit v1.2.3