2016-09-04 15:56:46 +02:00
|
|
|
{% from 'oscar/macros.html' import result_link with context %}
|
2014-10-05 15:29:21 +02:00
|
|
|
<div class="panel panel-default infobox">
|
|
|
|
<div class="panel-heading">
|
2016-06-06 08:08:36 +02:00
|
|
|
<h4 class="panel-title infobox_part"><bdi>{{ infobox.infobox }}</bdi></h4>
|
2014-10-05 15:29:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
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 %}
|
2016-06-06 08:08:36 +02:00
|
|
|
{% if infobox.content %}<bdi><p class="infobox_part">{{ infobox.content }}</bdi></p>{% endif %}
|
2014-10-05 15:29:21 +02:00
|
|
|
|
|
|
|
{% if infobox.attributes %}
|
|
|
|
<table class="table table-striped infobox_part">
|
|
|
|
{% for attribute in infobox.attributes %}
|
|
|
|
<tr>
|
2016-06-06 08:08:36 +02:00
|
|
|
<td><bdi>{{ attribute.label }}</bdi></td>
|
2016-02-28 02:19:04 +01:00
|
|
|
{% if attribute.image %}
|
|
|
|
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
|
|
|
{% else %}
|
2016-06-06 08:08:36 +02:00
|
|
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
2016-02-28 02:19:04 +01:00
|
|
|
{% endif %}
|
2014-10-05 15:29:21 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if infobox.urls %}
|
|
|
|
<div class="infobox_part">
|
2016-06-06 08:08:36 +02:00
|
|
|
<bdi>
|
2014-10-05 15:29:21 +02:00
|
|
|
{% for url in infobox.urls %}
|
2016-09-04 15:56:46 +02:00
|
|
|
<p class="btn btn-default btn-xs">{{ result_link(url.url, url.title) }}</a></p>
|
2014-10-05 15:29:21 +02:00
|
|
|
{% endfor %}
|
2016-06-06 08:08:36 +02:00
|
|
|
</bdi>
|
2014-10-05 15:29:21 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|