diff options
Diffstat (limited to 'searx/templates/oscar/result_templates/default.html')
-rw-r--r-- | searx/templates/oscar/result_templates/default.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html index 535630499..72a5f8c56 100644 --- a/searx/templates/oscar/result_templates/default.html +++ b/searx/templates/oscar/result_templates/default.html @@ -3,13 +3,13 @@ {{- result_header(result, favicons, loop.index) -}} {{- result_sub_header(result, loop.index) -}} -{%- if result.embedded -%} +{%- if result.data_src -%} <small> • <a class="text-info btn-collapse collapsed cursor-pointer media-loader disabled_if_nojs" data-toggle="collapse" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}" aria-labelledby="result-{{loop.index}}">{{ icon('music') }} {{ _('show media') }}</a></small> {%- endif -%} -{%- if result.embedded -%} -<div id="result-media-{{ index }}" class="collapse"> - {{- result.embedded|safe -}} +{% if result.data_src -%} +<div id="result-media-{{ index }}" class="embedded-content invisible"> + <iframe data-src="{{result.data_src}}" frameborder="0" allowfullscreen></iframe> </div> {%- endif -%} @@ -24,6 +24,13 @@ {%- if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif -%} {%- endif -%} +{% if result.audio_src -%} +<div id="result-media-{{ index }}" class="audio-control"> + <audio controls><source src="{{result.audio_src}}"></audio> +</div> +{%- endif %} + + {%- if rtl -%} {{ result_footer_rtl(result, loop.index) }} {%- else -%} |