diff options
author | Adam Tauber <asciimoo@gmail.com> | 2020-06-28 20:40:48 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2020-06-28 20:41:42 +0200 |
commit | b51d4ec041c59001f8365904d799b5188ec60c3c (patch) | |
tree | 729ab615cd98554c7f919103de71ee029b80abe9 /searx/templates/oscar/result_templates/videos.html | |
parent | f9f5974968ce767c24eea8c8a651d0e3945fc01b (diff) | |
download | searxng-b51d4ec041c59001f8365904d799b5188ec60c3c.tar.gz searxng-b51d4ec041c59001f8365904d799b5188ec60c3c.zip |
[fix] add aria labels to result links - #350
Diffstat (limited to 'searx/templates/oscar/result_templates/videos.html')
-rw-r--r-- | searx/templates/oscar/result_templates/videos.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/searx/templates/oscar/result_templates/videos.html b/searx/templates/oscar/result_templates/videos.html index 6d9101d2e..bf02a553a 100644 --- a/searx/templates/oscar/result_templates/videos.html +++ b/searx/templates/oscar/result_templates/videos.html @@ -1,10 +1,10 @@ {% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} -{{ result_header(result, favicons) }} -{{ result_sub_header(result) }} +{{ result_header(result, favicons, loop.index) }} +{{ result_sub_header(result, loop.index) }} {% if result.embedded %} - <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') }}">{{ icon('film') }} {{ _('show video') }}</a></small> + <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.embedded %} @@ -15,7 +15,7 @@ <div class="container-fluid"> <div class="row"> - <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) }}" /></a> + <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> {% 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 %} @@ -23,7 +23,7 @@ </div> {% if rtl %} -{{ result_footer_rtl(result) }} +{{ result_footer_rtl(result, loop.index) }} {% else %} -{{ result_footer(result) }} +{{ result_footer(result, loop.index) }} {% endif %} |