summaryrefslogtreecommitdiff
path: root/searx/templates/courgette/result_templates/images.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-09-04 15:56:46 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-09-04 15:57:43 +0200
commitb4b02316173c911f2b12d7c41b9729b28bc9c32c (patch)
treea1ae565beb913744ef51634f054687c00439ae70 /searx/templates/courgette/result_templates/images.html
parent7591c8bfe314b82262c49373e7c26fe5c333d671 (diff)
downloadsearxng-b4b02316173c911f2b12d7c41b9729b28bc9c32c.tar.gz
searxng-b4b02316173c911f2b12d7c41b9729b28bc9c32c.zip
[fix] links in new tabs without js ++ noopener bug fix - closes #674
Diffstat (limited to 'searx/templates/courgette/result_templates/images.html')
-rw-r--r--searx/templates/courgette/result_templates/images.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/courgette/result_templates/images.html b/searx/templates/courgette/result_templates/images.html
index 87fc7744c..49acb3b61 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 }}" rel="noreferrer"><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 }}" rel="noreferrer" class="small_font">{{ _('original context') }}</a></span>
+ <a href="{{ result.img_src }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><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 }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} class="small_font">{{ _('original context') }}</a></span>
</p>
</div>