diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-13 16:12:46 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-02-18 19:00:49 +0100 |
commit | 7352c6bc79dacd501d3059e4e3995e9acf4ce456 (patch) | |
tree | 42b89f82a598914e18df0d69acde1a45adabc7b4 /searx/templates | |
parent | f5e8cfade200fb7b7b2aace255d90c72dcc5bc37 (diff) | |
download | searxng-7352c6bc79dacd501d3059e4e3995e9acf4ce456.tar.gz searxng-7352c6bc79dacd501d3059e4e3995e9acf4ce456.zip |
[mod] templates: rename field for <iframe> URL to iframe_src
Rename result field data_src to iframe_src
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#issuecomment-1037997402
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates')
4 files changed, 12 insertions, 12 deletions
diff --git a/searx/templates/oscar/result_templates/default.html b/searx/templates/oscar/result_templates/default.html index 5517b7b9c..ea202910d 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.data_src -%} +{%- if result.iframe_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.data_src -%} +{% if result.iframe_src -%} <div id="result-media-{{ index }}" class="embedded-content invisible"> - <iframe data-src="{{result.data_src}}" frameborder="0" scrolling="no" allowfullscreen></iframe> + <iframe data-src="{{result.iframe_src}}" frameborder="0" scrolling="no" allowfullscreen></iframe> </div> {%- endif -%} diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html index 4519b96d6..975f75e2a 100644 --- a/searx/templates/oscar/result_templates/videos.html +++ b/searx/templates/oscar/result_templates/videos.html @@ -3,13 +3,13 @@ {{- result_header(result, favicons, loop.index) -}} {{- result_sub_header(result, loop.index) -}} -{%- if result.data_src -%} +{%- if result.iframe_src -%} <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> {%- endif -%} -{% if result.data_src -%} +{% if result.iframe_src -%} <div id="result-video-{{ index }}" class="embedded-video collapse"> - <iframe data-src="{{result.data_src}}" width="540" height="304" frameborder="0" scrolling="no" allowfullscreen></iframe> + <iframe data-src="{{result.iframe_src}}" width="540" height="304" frameborder="0" scrolling="no" allowfullscreen></iframe> </div> {%- endif %} diff --git a/searx/templates/simple/result_templates/default.html b/searx/templates/simple/result_templates/default.html index 9e4dae138..0033e845b 100644 --- a/searx/templates/simple/result_templates/default.html +++ b/searx/templates/simple/result_templates/default.html @@ -2,7 +2,7 @@ {{ result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} -{% if result.data_src -%} +{% if result.iframe_src -%} <p class="altlink"> • <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}">{{ icon('music-note') }} {{ _('show media') }}</a></p> {%- endif %} {%- if result.content %} @@ -15,9 +15,9 @@ </p> {% endif -%} {{- result_sub_footer(result, proxify) -}} -{% if result.data_src -%} +{% if result.iframe_src -%} <div id="result-media-{{ index }}" class="embedded-content invisible"> - <iframe data-src="{{result.data_src}}" frameborder="0" allowfullscreen></iframe> + <iframe data-src="{{result.iframe_src}}" frameborder="0" allowfullscreen></iframe> </div> {%- endif %} {% if result.audio_src -%} diff --git a/searx/templates/simple/result_templates/videos.html b/searx/templates/simple/result_templates/videos.html index 6da70a8a2..adbda4063 100644 --- a/searx/templates/simple/result_templates/videos.html +++ b/searx/templates/simple/result_templates/videos.html @@ -2,7 +2,7 @@ {{ result_header(result, favicons, image_proxify) }} {{ result_sub_header(result) }} -{% if result.data_src -%} +{% if result.iframe_src -%} <p class="altlink"> • <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}">{{ icon('film-outline') }} {{ _('show video') }}</a></p> {%- endif %} {%- if result.content %} @@ -16,9 +16,9 @@ {% endif -%} </p> {{- result_sub_footer(result, proxify) -}} -{% if result.data_src -%} +{% if result.iframe_src -%} <div id="result-video-{{ index }}" class="embedded-video invisible"> - <iframe data-src="{{result.data_src}}" frameborder="0" allowfullscreen></iframe> + <iframe data-src="{{result.iframe_src}}" frameborder="0" allowfullscreen></iframe> </div> {%- endif %} {{ result_footer(result) }} |