From 2b0dd96bd34a086b9bc4e008823b73bf4fcd8133 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 17 Mar 2021 09:22:05 +0100 Subject: [mod] oscar: remove space * reduce by 15% the uncompressed output (on average) * dos2unix searx/templates/oscar/result_templates/files.html --- searx/templates/oscar/macros.html | 102 +++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'searx/templates/oscar/macros.html') diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 571242860..1cf46074f 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -19,9 +19,9 @@ {% macro result_sub_header(result, id) -%} - {% if result.publishedDate %}{% endif %} - {% if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}{% endif %} - {% if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}{% endif %} + {%- if result.publishedDate %}{% endif -%} + {%- if result.magnetlink %} • {{ result_link(result.magnetlink, icon('magnet') + _('magnet link'), "magnetlink", id) }}{% endif -%} + {%- if result.torrentfile %} • {{ result_link(result.torrentfile, icon('download-alt') + _('torrent file'), "torrentfile", id) }}{% endif -%} {%- endmacro %} @@ -32,11 +32,11 @@ {{ engine }} {%- endfor -%} {%- if result.url -%} - {% if result.cached_url %} + {%- if result.cached_url -%} {{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }} - {% elif not result.is_onion %} + {%- elif not result.is_onion -%} {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {% endif %} + {%- endif -%} {%- endif -%} {%- if proxify -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} @@ -49,73 +49,73 @@ {% macro result_footer_nocache(result) -%} -
+
{{- "" -}}
- {% for engine in result.engines %} + {%- for engine in result.engines -%} {{ engine }} - {% endfor %} - {% if proxify %} + {%- endfor -%} + {%- if proxify -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {% endif %} -
+ {%- endif -%} +{{- "" -}} {%- endmacro %} {% macro result_footer_rtl(result, id) -%} -
{{- "" -}} - {% for engine in result.engines -%} +
+ {%- for engine in result.engines -%} {{ engine }} - {%- endfor %} + {%- endfor -%} {%- if result.url -%} - {% if result.cached_url %} + {%- if result.cached_url -%} {{ result_link(result.cached_url, icon('link') + _('cached'), "text-info", id) }} - {% elif not result.is_onion %} + {%- elif not result.is_onion -%} {{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "text-info", id) }} - {% endif %} + {%- endif -%} {%- endif -%} - {% if proxify -%} + {%- if proxify -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info", id) }} - {%- endif %} + {%- endif -%} {%- if result.pretty_url -%} - {%- endif %} + {%- endif -%} {%- endmacro %} {% macro result_footer_nocache_rtl(result) -%}
- {% for engine in result.engines %} + {%- for engine in result.engines -%} {{ engine }} - {% endfor %} - {% if proxify %} + {%- endfor -%} + {%- if proxify -%} {{ result_link(proxify(result.url), icon('sort') + _('proxied'), "text-info") }} - {% endif %} + {%- endif -%} {%- endmacro %} {% macro preferences_item_header(info, label, rtl, id) -%} - {% if rtl %} -
- - {{ info }} + {%- if rtl -%} +
{{- "" -}} + {{- "" -}} + {{ info }}{{- "" -}}
- {% else %} -
- + {%- else -%} +
{{- "" -}} + {{- "" -}}
- {% endif %} + {%- endif -%} {%- endmacro %} {% macro preferences_item_footer(info, label, rtl) -%} - {% if rtl %} -
+ {%- if rtl -%} +
{{- "" -}}
- {% else %} + {%- else -%}
- {{ info }} + {{ info }}{{- "" -}}
- {% endif %} + {%- endif -%} {%- endmacro %} {% macro custom_select_class(rtl) -%} @@ -123,24 +123,24 @@ custom-select{% if rtl %}-rtl{% endif %} {%- endmacro %} {% macro checkbox_toggle(id, blocked) -%} -
- - - -
+
{{- "" -}} + {{- "" -}} + {{- "" -}} + {{- "" -}} +
{{- "" -}} {%- endmacro %} {% macro support_toggle(supports) -%} - {% if supports %} + {%- if supports -%} - {{ _("supported") }} + {{- _("supported") -}} - {% else %} + {%- else -%} - {{ _("not supported") }} + {{- _("not supported") -}} - {% endif %} + {%- endif -%} {%- endmacro %} -- cgit v1.2.3