From e76ab1a4b3a99b0ec2ef90c3aadc92ffbf6889b1 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 20 Feb 2024 10:51:58 +0100 Subject: [refactor] images: add resolution, image format and filesize fields Co-authored-by: Markus Heiser --- searx/templates/simple/result_templates/images.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'searx/templates/simple') diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index 8aadbd204..0462588be 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -2,7 +2,10 @@ {{- "" -}} {{ result.title|striptags }}{{- "" -}} {{ result.title|striptags }}{{- "" -}} - {{ result.parsed_url.netloc }}{{- "" -}} + + {{- result.parsed_url.netloc -}} + {%- if result.resolution %} - {{ result.resolution }}{%- endif -%} + {{- "" -}} {{- "" -}}
{{- "" -}} {{ icon('close') }}{{- "" -}} @@ -16,7 +19,9 @@

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

{{- "" -}}
{{- "" -}}

{%- if result.author %}{{ _('Author') }}:{{ result.author|striptags }}{% else %} {% endif -%}

{{- "" -}} +

{%- if result.resolution %}{{ _('Resolution') }}:{{ result.resolution }}{% else %} {% endif -%}

{{- "" -}}

{%- if result.img_format %}{{ _('Format') }}:{{ result.img_format }}{% else %} {% endif -%}

{{- "" -}} +

{%- if result.filesize %}{{ _('Filesize') }}:{{ result.filesize}}{% else %} {% endif -%}

{{- "" -}}

{%- if result.source %}{{ _('Source') }}:{{ result.source }}{% else %} {% endif -%}

{{- "" -}}

{{ _('Engine') }}:{{ result.engine }}

{{- "" -}}{{- "" -}}

{{ _('View source') }}:{{ result.url }}

{{- "" -}} -- cgit v1.2.3-54-g00ecf