1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-17 01:50:10 +01:00
searxng/searx/templates/oscar/infobox.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2014-10-05 15:29:21 +02:00
<div class="panel panel-default infobox">
<div class="panel-heading">
<bdi><h4 class="panel-title infobox_part">{{ infobox.infobox }}</h4></bdi>
2014-10-05 15:29:21 +02:00
</div>
<div class="panel-body">
<bdi>
2015-01-17 22:36:48 +01:00
{% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %}
2014-10-05 15:29:21 +02:00
{% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %}
{% if infobox.attributes %}
<table class="table table-striped infobox_part">
{% 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 %}
2014-10-05 15:29:21 +02:00
<td>{{ attribute.value }}</td>
{% endif %}
2014-10-05 15:29:21 +02:00
</tr>
{% endfor %}
</table>
{% endif %}
{% if infobox.urls %}
<div class="infobox_part">
{% for url in infobox.urls %}
<p class="btn btn-default btn-xs"><a href="{{ url.url }}" rel="noreferrer">{{ url.title }}</a></p>
2014-10-05 15:29:21 +02:00
{% endfor %}
</div>
{% endif %}
</bdi>
2014-10-05 15:29:21 +02:00
</div>
</div>