From ddd061a17f3c376da424a81137df4359af6b0ba6 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Wed, 4 May 2016 11:49:30 +0200 Subject: [PATCH] Adds alternative text for sidebar map --- app/views/proposals/_geozones.html.erb | 6 +++--- config/locales/en.yml | 1 + config/locales/es.yml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/proposals/_geozones.html.erb b/app/views/proposals/_geozones.html.erb index ccaa21e65..ceec721ce 100644 --- a/app/views/proposals/_geozones.html.erb +++ b/app/views/proposals/_geozones.html.erb @@ -1,6 +1,6 @@
-<%= link_to map_proposals_path, id: 'map' do %> - <%= image_tag("map.jpg") %> -<% end %> \ No newline at end of file +<%= link_to map_proposals_path, id: 'map', title: t("shared.tags_cloud.districts_list") do %> + <%= image_tag("map.jpg", alt: t("shared.tags_cloud.districts_list")) %> +<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index fffb3de2d..62fc521c5 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -409,6 +409,7 @@ en: tags_cloud: tags: Trending districts: "Districts" + districts_list: "Districts list" categories: "Categories" target_blank_html: " (link opens in new window)" unflag: Unflag diff --git a/config/locales/es.yml b/config/locales/es.yml index 0f1a70be3..05e53fc2b 100755 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -409,6 +409,7 @@ es: tags_cloud: tags: Tendencias districts: "Distritos" + districts_list: "Listado de distritos" categories: "Categorías" target_blank_html: " (se abre en ventana nueva)" unflag: Deshacer denuncia