summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/images.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-15 18:57:08 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-15 18:57:08 +0100
commit75bd4556f8cca8c39799fdee02739408a4d84cfa (patch)
tree8e2545b9953f6d7f1e94d5aad85cab75295c590d /searx/templates/oscar/result_templates/images.html
parentc5599e3c7c790ac2674b68f99919c0ec284327a3 (diff)
parentfe5ff5137711e6f8799e3e635543e75ad8fbe331 (diff)
Merge branch 'pointhi-code_results'
Diffstat (limited to 'searx/templates/oscar/result_templates/images.html')
-rw-r--r--searx/templates/oscar/result_templates/images.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/templates/oscar/result_templates/images.html b/searx/templates/oscar/result_templates/images.html
index 94627c9b5..7ad4e2435 100644
--- a/searx/templates/oscar/result_templates/images.html
+++ b/searx/templates/oscar/result_templates/images.html
@@ -1,3 +1,5 @@
+{% 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">
</a>
@@ -7,7 +9,7 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">{% if result.engine~".png" in favicons %}<img width="32" height="32" class="favicon" src="static/{{ theme }}/img/icons/{{ result.engine }}.png" alt="{{ result.engine }}" /> {% endif %}{{ result.title|striptags }}</h4>
+ <h4 class="modal-title">{% if result.engine~".png" in favicons %}{{ draw_favicon(result.engine) }} {% endif %}{{ result.title|striptags }}</h4>
</div>
<div class="modal-body">
<img class="img-responsive center-block" src="{{ result.img_src }}" alt="{{ result.title }}">