瀏覽代碼

Use the new way of finding the favicon

Cqoicebordel 10 年之前
父節點
當前提交
3ffe6014ed
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/templates/oscar/result_templates/images.html

+ 1
- 1
searx/templates/oscar/result_templates/images.html 查看文件

@@ -7,7 +7,7 @@
7 7
         <div class="modal-content">
8 8
             <div class="modal-header">
9 9
                 <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>
11 11
             </div>
12 12
             <div class="modal-body">
13 13
                 <img class="img-responsive center-block" src="{{ result.img_src }}" alt="{{ result.title }}">