From e4e8e6da4c90d3d65418aeaf1d7ebfc64c497685 Mon Sep 17 00:00:00 2001 From: Frank de Lange Date: Tue, 6 Aug 2019 09:31:24 +0200 Subject: Add image format and source information to display (#1567) Add image format and source information to display - needs changes to engines to actually display something. Displays result.source (website from which the image was taken) and result.img_format (image type and size). Result is styled with result-format and result-source classes. See PR #1566 for an example of an engine which has the necessary changes. Strip ... in the oscar image template. --- searx/templates/oscar/result_templates/images.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'searx/templates/oscar/result_templates/images.html') diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index b23f34915..b3292f448 100644 --- a/searx/templates/oscar/result_templates/images.html +++ b/searx/templates/oscar/result_templates/images.html @@ -16,7 +16,17 @@ {% if result.author %}{{ result.author }}
{% endif %} {% if result.content %}

- {{ result.content }} + {{ result.content|striptags }} +

+ {% endif %} + {% if result.img_format %} +

+ {{ result.img_format }} +

+ {% endif %} + {% if result.source %} +

+ {{ result.source }}

{% endif %} -- cgit v1.2.3 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/result_templates/images.html | 85 +++++++++------------- 1 file changed, 36 insertions(+), 49 deletions(-) (limited to 'searx/templates/oscar/result_templates/images.html') diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index b3292f448..8985a9f4e 100644 --- a/searx/templates/oscar/result_templates/images.html +++ b/searx/templates/oscar/result_templates/images.html @@ -1,49 +1,36 @@ -{% from 'oscar/macros.html' import draw_favicon %} - - - {{ result.title|striptags }} - - - +{%- from 'oscar/macros.html' import draw_favicon -%} + +{{- "" -}} + {{ result.title|striptags }}{{- "" -}} + +{{- "" -}} -- cgit v1.2.3 From 2a5c39e33c3306ca17e09211fbf5a0f785cb10c8 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 10 Dec 2019 18:10:33 +0100 Subject: theme: oscar - tidy up trailing whitespaces and tab usage Signed-off-by: Markus Heiser --- searx/templates/oscar/result_templates/images.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/templates/oscar/result_templates/images.html') diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html index 8985a9f4e..d0a3b7b83 100644 --- a/searx/templates/oscar/result_templates/images.html +++ b/searx/templates/oscar/result_templates/images.html @@ -22,7 +22,7 @@ {{ result.engine }}{{- "" -}}

{{ result.pretty_url }}

{{- "" -}}
{{- "" -}} -
{{- "" -}} +
{{- "" -}}
{{- "" -}} {{ _('Get image') }}{{- "" -}}
{{- "" -}} -- cgit v1.2.3