on master help sign in
Proxify images inside infoboxes
9154cf7dalf
searx/templates/default/infobox.html+1−1
@@ -1,6 +1,6 @@
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 %}
searx/templates/oscar/infobox.html+1−1
@@ -3,7 +3,7 @@
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 %}