on master help sign in
Use the new way of finding the favicon
commit3ffe6014ed491e47e779fa90ae8e7bb1d8eff849 authorCqoicebordel <Cqoicebordel@users.noreply.github.com> dateFri 12 Dec 2014, 19:13 (12 years ago) parent3b88adf
1 file changed+1−1
searx/templates/oscar/result_templates/images.html+1−1
searx/templates/oscar/result_templates/images.html+1−1
@@ -7,7 +7,7 @@
77 <div class="modal-content">
88 <div class="modal-header">
99 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
10− <h4 class="modal-title">{% if result['favicon'] %}<img width="32" height="32" class="favicon" src="static/{{ theme }}/img/icons/{{ result['favicon'] }}.png" alt="{{ result['favicon'] }}" /> {% endif %}{{ result.title|striptags }}</h4>
10+ <h4 class="modal-title">{% if result['favicon']~".png" in favicons %}<img width="32" height="32" class="favicon" src="static/{{ theme }}/img/icons/{{ result['favicon'] }}.png" alt="{{ result['favicon'] }}" /> {% endif %}{{ result.title|striptags }}</h4>
1111 </div>
1212 <div class="modal-body">
1313 <img class="img-responsive center-block" src="{{ result.img_src }}" alt="{{ result.title }}">