2016-09-04 13:56:46 +00:00
|
|
|
{% from 'oscar/macros.html' import result_link with context %}
|
2014-10-05 13:29:21 +00:00
|
|
|
<div class="panel panel-default infobox">
|
2019-08-06 09:41:16 +00:00
|
|
|
<div class="panel-heading">{{- "" -}}
|
2020-07-27 03:31:57 +00:00
|
|
|
<div class="infobox_part">
|
2020-07-27 06:26:30 +00:00
|
|
|
<div class="{% if not rtl %}pull-right{% endif %}">
|
|
|
|
{% for engine in infobox.engines %}
|
|
|
|
<span class="label label-default">{{ engine }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-07-27 03:31:57 +00:00
|
|
|
<h4 class="panel-title"><bdi>{{ infobox.infobox }}</bdi></h4>{{- "" -}}
|
2020-08-03 01:18:30 +00:00
|
|
|
{% for u in infobox.urls %}{% if u.official %} <a class="header_url" href="{{ u.url }}">{{ u.url }}</a>{% endif %}{% endfor %}
|
2020-07-27 03:31:57 +00:00
|
|
|
</div>
|
2014-10-05 13:29:21 +00:00
|
|
|
</div>
|
2020-08-03 07:15:54 +00:00
|
|
|
<input type="checkbox" class="infobox_checkbox" id="expand_infobox_{{ infobox.engine }}" hidden>
|
|
|
|
<div class="panel-body infobox_body">
|
2020-06-23 19:44:13 +00:00
|
|
|
{% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" />{% endif %}
|
2014-10-05 13:29:21 +00:00
|
|
|
|
2019-12-22 01:21:22 +00:00
|
|
|
{% if infobox.content %}<bdi><p class="infobox_part">{{ infobox.content | safe }}</p></bdi>{% endif %}
|
2019-08-06 09:41:16 +00:00
|
|
|
|
|
|
|
{% if infobox.attributes -%}
|
2014-10-05 13:29:21 +00:00
|
|
|
<table class="table table-striped infobox_part">
|
2019-08-06 09:41:16 +00:00
|
|
|
{% for attribute in infobox.attributes -%}
|
|
|
|
<tr>{{- "" -}}
|
2016-06-06 06:08:36 +00:00
|
|
|
<td><bdi>{{ attribute.label }}</bdi></td>
|
2019-08-06 09:41:16 +00:00
|
|
|
{%- if attribute.image -%}
|
2016-02-28 01:19:04 +00:00
|
|
|
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
2019-08-06 09:41:16 +00:00
|
|
|
{%- else -%}
|
2020-10-26 18:25:28 +00:00
|
|
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
2019-08-06 09:41:16 +00:00
|
|
|
{%- endif -%}
|
2014-10-05 13:29:21 +00:00
|
|
|
</tr>
|
2019-08-06 09:41:16 +00:00
|
|
|
{% endfor -%}
|
2014-10-05 13:29:21 +00:00
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
2019-08-06 09:41:16 +00:00
|
|
|
{% if infobox.urls -%}
|
|
|
|
<div class="infobox_part">{{- "\n" -}}
|
2016-06-06 06:08:36 +00:00
|
|
|
<bdi>
|
2019-08-06 09:41:16 +00:00
|
|
|
{%- for url in infobox.urls -%}
|
|
|
|
<p class="btn btn-default btn-xs">{{ result_link(url.url, url.title) }}</p>
|
|
|
|
{% endfor -%}
|
|
|
|
</bdi>{{- "" -}}
|
2014-10-05 13:29:21 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-08-03 07:15:54 +00:00
|
|
|
<label for="expand_infobox_{{ infobox.engine }}" class="infobox_toggle panel-footer">
|
|
|
|
<span class="infobox_label_down glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span class="infobox_label_up glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</label>
|
2014-10-05 13:29:21 +00:00
|
|
|
</div>
|