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

50 lines
2.2 KiB
HTML
Raw Normal View History

{% from 'oscar/macros.html' import result_link with context %}
2014-10-05 15:29:21 +02:00
<div class="panel panel-default infobox">
2019-08-06 11:41:16 +02:00
<div class="panel-heading">{{- "" -}}
<div class="infobox_part">
2020-07-27 08:26:30 +02:00
<div class="{% if not rtl %}pull-right{% endif %}">
{% for engine in infobox.engines %}
<span class="label label-default">{{ engine }}</span>
{% endfor %}
</div>
<h4 class="panel-title"><bdi>{{ infobox.infobox }}</bdi></h4>{{- "" -}}
2020-08-03 03:18:30 +02:00
{% for u in infobox.urls %}{% if u.official %} <a class="header_url" href="{{ u.url }}">{{ u.url }}</a>{% endif %}{% endfor %}
</div>
2014-10-05 15:29:21 +02:00
</div>
2020-08-03 09:15:54 +02:00
<input type="checkbox" class="infobox_checkbox" id="expand_infobox_{{ infobox.engine }}" hidden>
<div class="panel-body infobox_body">
{% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" />{% endif %}
2014-10-05 15:29:21 +02:00
{% if infobox.content %}<bdi><p class="infobox_part">{{ infobox.content | safe }}</p></bdi>{% endif %}
2019-08-06 11:41:16 +02:00
{% if infobox.attributes -%}
2014-10-05 15:29:21 +02:00
<table class="table table-striped infobox_part">
2019-08-06 11:41:16 +02:00
{% for attribute in infobox.attributes -%}
<tr>{{- "" -}}
<td><bdi>{{ attribute.label }}</bdi></td>
2019-08-06 11:41:16 +02:00
{%- if attribute.image -%}
<td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
2019-08-06 11:41:16 +02:00
{%- else -%}
<td><bdi>{{ attribute.value }}</bdi></td>
2019-08-06 11:41:16 +02:00
{%- endif -%}
2014-10-05 15:29:21 +02:00
</tr>
2019-08-06 11:41:16 +02:00
{% endfor -%}
2014-10-05 15:29:21 +02:00
</table>
{% endif %}
2019-08-06 11:41:16 +02:00
{% if infobox.urls -%}
<div class="infobox_part">{{- "\n" -}}
<bdi>
2019-08-06 11:41:16 +02: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 15:29:21 +02:00
</div>
{% endif %}
</div>
2020-08-03 09:15:54 +02: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 15:29:21 +02:00
</div>