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/simple/result_templates/videos.html | |
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/simple/result_templates/videos.html')
-rw-r--r-- | searx/templates/simple/result_templates/videos.html | 6 |
1 files changed, 3 insertions, 3 deletions
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) }} |