summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/default/infobox.html9
-rw-r--r--searx/templates/oscar/infobox.html6
2 files changed, 13 insertions, 2 deletions
diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html
index 1733f7753..178a27e6d 100644
--- a/searx/templates/default/infobox.html
+++ b/searx/templates/default/infobox.html
@@ -7,7 +7,14 @@
<div class="attributes">
<table>
{% for attribute in infobox.attributes %}
- <tr><td>{{ attribute.label }}</td><td>{{ attribute.value }}</td></tr>
+ <tr>
+ <td>{{ attribute.label }}</td>
+ {% if attribute.image %}
+ <td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
+ {% else %}
+ <td>{{ attribute.value }}</td>
+ {% endif %}
+ </tr>
{% endfor %}
</table>
</div>
diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html
index 2abdbf0ec..d87d98453 100644
--- a/searx/templates/oscar/infobox.html
+++ b/searx/templates/oscar/infobox.html
@@ -1,6 +1,6 @@
<div class="panel panel-default infobox">
<div class="panel-heading">
- <h4 class="panel-title">{{ infobox.infobox }}</h4>
+ <h4 class="panel-title infobox_part">{{ infobox.infobox }}</h4>
</div>
<div class="panel-body">
{% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %}
@@ -11,7 +11,11 @@
{% for attribute in infobox.attributes %}
<tr>
<td>{{ attribute.label }}</td>
+ {% if attribute.image %}
+ <td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
+ {% else %}
<td>{{ attribute.value }}</td>
+ {% endif %}
</tr>
{% endfor %}
</table>