2019-12-08 14:14:18 +01:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
|
|
|
|
2021-03-17 09:22:05 +01:00
|
|
|
{{- result_header(result, favicons, loop.index) -}}
|
|
|
|
{{- result_sub_header(result, loop.index) -}}
|
2019-12-08 14:14:18 +01:00
|
|
|
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- if result.embedded -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
<small> • <a class="text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs" data-toggle="collapse" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}" aria-labelledby="result-{{loop.index}}">{{ icon('film') }} {{ _('show video') }}</a></small>
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- endif -%}
|
2019-12-08 14:14:18 +01:00
|
|
|
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- if result.embedded -%}
|
2019-12-08 14:14:18 +01:00
|
|
|
<div id="result-video-{{ index }}" class="collapse">
|
2021-03-17 09:22:05 +01:00
|
|
|
{{- result.embedded|safe -}}
|
2019-12-08 14:14:18 +01:00
|
|
|
</div>
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- endif -%}
|
2019-12-08 14:14:18 +01:00
|
|
|
|
2021-03-17 09:22:05 +01:00
|
|
|
<div class="container-fluid">{{- "" -}}
|
|
|
|
<div class="row">{{- "" -}}
|
2020-06-28 20:40:48 +02:00
|
|
|
<a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><img class="thumbnail col-xs-6 col-sm-4 col-md-4 result-content" src="{{ image_proxify(result.thumbnail) }}" aria-labelledby="result-{{loop.index}}" /></a>
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- if result.author %}<p class="col-xs-12 col-sm-8 col-md-8 result-content"><b>{{ _('Author') }}</b>: {{ result.author }}</p>{% endif -%}
|
|
|
|
{%- if result.length %}<p class="col-xs-12 col-sm-8 col-md-8 result-content"><b>{{ _('Length') }}</b>: {{ result.length }}</p>{% endif -%}
|
|
|
|
{%- if result.content %}<p class="col-xs-12 col-sm-8 col-md-8 result-content">{{ result.content|safe }}</p>{% endif -%}
|
|
|
|
</div>{{- "" -}}
|
2019-12-08 14:14:18 +01:00
|
|
|
</div>
|
|
|
|
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- if rtl -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
{{ result_footer_rtl(result, loop.index) }}
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- else -%}
|
2020-06-28 20:40:48 +02:00
|
|
|
{{ result_footer(result, loop.index) }}
|
2021-03-17 09:22:05 +01:00
|
|
|
{%- endif -%}
|