logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: a1bf02e6526743cd834850b0f58ec8a1115a25b2
parent: 01143f48c527ff7bb98b9a9e3d31f087d7d30ca3
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Fri, 16 Jan 2015 16:26:48 +0100

[enh] add image proxy to image results

Diffstat:

searx/templates/courgette/result_templates/images.html | 5++---
searx/templates/default/result_templates/images.html | 2+-
searx/templates/oscar/result_templates/images.html | 2+-
3 files changed, 4 insertions(+), 5 deletions(-)

diff --git 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="{{ result.img_src }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/></a> + <a href="{{ result.img_src }}"><img src="{{ image_proxify(result.img_src) }}" 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>- \ No newline at end of file +</div> diff --git 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="{{ result.img_src }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}" /></a> + <a href="{{ result.img_src }}"><img src="{{ image_proxify(result.img_src) }}" 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> diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html @@ -1,7 +1,7 @@ {% from 'oscar/macros.html' import draw_favicon %} <a href="{{ result.img_src }}" data-toggle="modal" data-target="#modal-{{ index }}"> - <img src="{{ result.img_src }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail"> + <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="img-thumbnail"> </a> <div class="modal fade" id="modal-{{ index }}" tabindex="-1" role="dialog" aria-hidden="true">