2019-12-08 13:14:18 +00:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{{- result_header(result, favicons, loop.index) -}}
|
|
|
|
{{- result_sub_header(result, loop.index) -}}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
2022-02-07 15:16:57 +00:00
|
|
|
{%- if result.data_src -%}
|
2020-06-28 18:40:48 +00: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 08:22:05 +00:00
|
|
|
{%- endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
2022-02-07 15:16:57 +00:00
|
|
|
{% if result.data_src -%}
|
|
|
|
<div id="result-video-{{ index }}" class="embedded-video collapse">
|
|
|
|
<iframe data-src="{{result.data_src}}" width="540" height="304" frameborder="0" allowfullscreen></iframe>
|
2019-12-08 13:14:18 +00:00
|
|
|
</div>
|
2022-02-07 15:16:57 +00:00
|
|
|
{%- endif %}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
<div class="container-fluid">{{- "" -}}
|
|
|
|
<div class="row">{{- "" -}}
|
2020-06-28 18:40:48 +00: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 08:22:05 +00: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 13:14:18 +00:00
|
|
|
</div>
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if rtl -%}
|
2020-06-28 18:40:48 +00:00
|
|
|
{{ result_footer_rtl(result, loop.index) }}
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- else -%}
|
2020-06-28 18:40:48 +00:00
|
|
|
{{ result_footer(result, loop.index) }}
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|