Browse Source

Proxify images inside infoboxes

dalf 10 years ago
parent
commit
9154cf7930
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      searx/templates/default/infobox.html
  2. 1
    1
      searx/templates/oscar/infobox.html

+ 1
- 1
searx/templates/default/infobox.html View File

1
 <div class="infobox">
1
 <div class="infobox">
2
     <h2>{{ infobox.infobox }}</h2>
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
     <p>{{ infobox.entity }}</p>
4
     <p>{{ infobox.entity }}</p>
5
     <p>{{ infobox.content | safe }}</p>
5
     <p>{{ infobox.content | safe }}</p>
6
     {% if infobox.attributes %}
6
     {% if infobox.attributes %}

+ 1
- 1
searx/templates/oscar/infobox.html View File

3
         <h4 class="panel-title">{{ infobox.infobox }}</h4>
3
         <h4 class="panel-title">{{ infobox.infobox }}</h4>
4
     </div>
4
     </div>
5
     <div class="panel-body">
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
         {% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %}
7
         {% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %}
8
 
8
 
9
         {% if infobox.attributes %}
9
         {% if infobox.attributes %}