summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/map.html
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-06-28 20:40:48 +0200
committerAdam Tauber <asciimoo@gmail.com>2020-06-28 20:41:42 +0200
commitb51d4ec041c59001f8365904d799b5188ec60c3c (patch)
tree729ab615cd98554c7f919103de71ee029b80abe9 /searx/templates/oscar/result_templates/map.html
parentf9f5974968ce767c24eea8c8a651d0e3945fc01b (diff)
downloadsearxng-b51d4ec041c59001f8365904d799b5188ec60c3c.tar.gz
searxng-b51d4ec041c59001f8365904d799b5188ec60c3c.zip
[fix] add aria labels to result links - #350
Diffstat (limited to 'searx/templates/oscar/result_templates/map.html')
-rw-r--r--searx/templates/oscar/result_templates/map.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html
index 712375d7f..be34d65d0 100644
--- a/searx/templates/oscar/result_templates/map.html
+++ b/searx/templates/oscar/result_templates/map.html
@@ -1,7 +1,7 @@
{% 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.latitude and result.longitude) or result.boundingbox %}
<small> &bull; <a class="text-info btn-collapse collapsed searx_init_map cursor-pointer disabled_if_nojs" data-toggle="collapse" data-target="#result-map-{{ index }}" data-leaflet-target="osm-map-{{ index }}" data-map-lon="{{ result.longitude }}" data-map-lat="{{ result.latitude }}" {% if result.boundingbox %}data-map-boundingbox='{{ result.boundingbox|tojson|safe }}'{% endif %} {% if result.geojson %}data-map-geojson='{{ result.geojson|tojson|safe }}'{% endif %} data-btn-text-collapsed="{{ _('show map') }}" data-btn-text-not-collapsed="{{ _('hide map') }}">{{ icon('globe') }} {{ _('show map') }}</a></small>
@@ -66,7 +66,7 @@
{% endif %}
{% if rtl %}
-{{ result_footer_rtl(result) }}
+{{ result_footer_rtl(result, loop.index) }}
{% else %}
-{{ result_footer(result) }}
+{{ result_footer(result, loop.index) }}
{% endif %}