diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-01-17 20:25:13 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-17 20:25:13 +0100 |
| commit | e3edded60f96aea7ce25465fd0dc49914d4fe9c8 (patch) | |
| tree | d67dd90de2b3983604e127c2c5e06de3aede9577 /searx/templates/default | |
| parent | 975b6b5b09b8b6366dc3103d04ca3636da927ebe (diff) | |
| parent | d910744efe02f6eedb8fcb7661b208b349f78b39 (diff) | |
Merge pull request #178 from Cqoicebordel/thumbnails
Thumbnails
Diffstat (limited to 'searx/templates/default')
| -rw-r--r-- | searx/templates/default/result_templates/images.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/default/result_templates/images.html b/searx/templates/default/result_templates/images.html index d6a0f84a1..e06dcc194 100644 --- a/searx/templates/default/result_templates/images.html +++ b/searx/templates/default/result_templates/images.html @@ -1,6 +1,6 @@ <div class="image_result"> <p> - <a href="{{ result.img_src }}"><img src="{{ image_proxify(result.img_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> |