ソースを参照

Proxify images inside infoboxes

dalf 10 年 前
コミット
9154cf7930
共有2 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 1
    1
      searx/templates/default/infobox.html
  2. 1
    1
      searx/templates/oscar/infobox.html

+ 1
- 1
searx/templates/default/infobox.html ファイルの表示

@@ -1,6 +1,6 @@
1 1
 <div class="infobox">
2 2
     <h2>{{ infobox.infobox }}</h2>
3
-    {% if infobox.img_src %}<img src="{{ infobox.img_src }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
3
+    {% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
4 4
     <p>{{ infobox.entity }}</p>
5 5
     <p>{{ infobox.content | safe }}</p>
6 6
     {% if infobox.attributes %}

+ 1
- 1
searx/templates/oscar/infobox.html ファイルの表示

@@ -3,7 +3,7 @@
3 3
         <h4 class="panel-title">{{ infobox.infobox }}</h4>
4 4
     </div>
5 5
     <div class="panel-body">
6
-        {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ infobox.img_src }}" alt="{{ infobox.infobox }}" />{% endif %}
6
+        {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %}
7 7
         {% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %}
8 8
 
9 9
         {% if infobox.attributes %}