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/result_templates/files.html | 110 +++++++++++----------- 1 file changed, 55 insertions(+), 55 deletions(-) (limited to 'searx/templates/oscar/result_templates/files.html') diff --git a/searx/templates/oscar/result_templates/files.html b/searx/templates/oscar/result_templates/files.html index 5e3894e0a..e2fec6f63 100644 --- a/searx/templates/oscar/result_templates/files.html +++ b/searx/templates/oscar/result_templates/files.html @@ -1,55 +1,55 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer_nocache, result_footer_nocache_rtl, icon with context %} - -{{ result_header(result, favicons) }} -{{ result_sub_header(result) }} - -{% if result.embedded %} - -{% endif %} - -{% if result.embedded %} -
- {{ result.embedded|safe }} -
-{% endif %} - -{% if result.abstract %}

{{ result.abstract|safe }}

{% endif %} - -{% if result.img_src %} -
-
-{{ result.title|striptags }} -{% if result.content %}

{{ result.content|safe }}

{% endif %} -
-
-{% else %} -{% if result.content %}

{{ result.content|safe }}

{% endif %} -{% endif %} - - -{% if result.author %}{% endif %} - -{% if result.filename %}{% endif %} - -{% if result.size %} -{% endif %} - -{% if result.time %}{% endif %} - -{% if result.mtype %}{% endif %} -
{{ _('Author') }}{{ result.author|safe }}
{{ _('Filename') }}{{ result.filename|safe }}
{{ _('Filesize') }} - {% if result.size < 1024 %}{{ result.size }} {{ _('Bytes') }} - {% elif result.size < 1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024) }} {{ _('kiB') }} - {% elif result.size < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024) }} {{ _('MiB') }} - {% elif result.size < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024) }} {{ _('GiB') }} - {% else %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif %} -
{{ _('Date') }}{{ result.time|safe }}
{{ _('Type') }}{{ result.mtype|safe }}/{{ result.subtype|safe }}
- -{% if rtl %} -{{ result_footer_nocache_rtl(result) }} -{% else %} -{{ result_footer_nocache(result) }} -{% endif %} +{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer_nocache, result_footer_nocache_rtl, icon with context %} + +{{- result_header(result, favicons) -}} +{{- result_sub_header(result) -}} + +{%- if result.embedded -%} + +{%- endif -%} + +{%- if result.embedded -%} +
+ {{- result.embedded|safe -}} +
+{%- endif -%} + +{%- if result.abstract %}

{{ result.abstract|safe }}

{% endif -%} + +{%- if result.img_src -%} +
+
+{{ result.title|striptags }} +{%- if result.content %}

{{ result.content|safe }}

{% endif -%} +
+
+{%- else -%} +{%- if result.content %}

{{ result.content|safe }}

{% endif -%} +{%- endif -%} + + +{%- if result.author %}{% endif -%} + +{%- if result.filename %}{% endif -%} + +{%- if result.size %} +{%- endif -%} + +{%- if result.time %}{% endif -%} + +{%- if result.mtype %}{% endif -%} +
{{ _('Author') }}{{ result.author|safe }}
{{ _('Filename') }}{{ result.filename|safe }}
{{ _('Filesize') }} + {%- if result.size < 1024 %}{{ result.size }} {{ _('Bytes') -}} + {%- elif result.size < 1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024) }} {{ _('kiB') -}} + {%- elif result.size < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024) }} {{ _('MiB') -}} + {%- elif result.size < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024) }} {{ _('GiB') -}} + {%- else %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif -%} +
{{ _('Date') }}{{ result.time|safe }}
{{ _('Type') }}{{ result.mtype|safe }}/{{ result.subtype|safe }}
+ +{%- if rtl -%} +{{ result_footer_nocache_rtl(result) }} +{%- else -%} +{{ result_footer_nocache(result) }} +{%- endif -%} -- cgit v1.2.3