summaryrefslogtreecommitdiff
path: root/searx/templates/courgette
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-17 19:49:21 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-17 19:49:21 +0100
commitd910744efe02f6eedb8fcb7661b208b349f78b39 (patch)
treefdfaa585f762e1e3bd41effc130ff238948437af /searx/templates/courgette
parent2c15546518c31e73fa443df129f75c7fad5d9c00 (diff)
downloadsearxng-d910744efe02f6eedb8fcb7661b208b349f78b39.tar.gz
searxng-d910744efe02f6eedb8fcb7661b208b349f78b39.zip
Test its existence before using thumbnail_src
Thanks @pointhi !
Diffstat (limited to 'searx/templates/courgette')
-rw-r--r--searx/templates/courgette/result_templates/images.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/courgette/result_templates/images.html b/searx/templates/courgette/result_templates/images.html
index 6a4d7ae83..7228578e7 100644
--- a/searx/templates/courgette/result_templates/images.html
+++ b/searx/templates/courgette/result_templates/images.html
@@ -1,6 +1,6 @@
<div class="image_result">
<p>
- <a href="{{ result.img_src }}"><img src="{{ image_proxify(result.thumbnail_src) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a>
+ <a href="{{ result.img_src }}"><img src="{% if result.thumbnail_src %}{{ image_proxify(result.thumbnail_src) }}{% else %}{{ image_proxify(result.img_src) }}{% endif %}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a>
<span class="url"><a href="{{ result.url }}" class="small_font">{{ _('original context') }}</a></span>
</p>
</div>