From ae879c0cb2e9138fd318e7079a8ab4f5209f8544 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 31 May 2017 13:19:36 +0200 Subject: [PATCH] adds title on subnavigation links --- app/views/shared/_subnavigation.html.erb | 15 ++++++++++----- config/locales/en.yml | 1 + config/locales/es.yml | 1 + 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/app/views/shared/_subnavigation.html.erb b/app/views/shared/_subnavigation.html.erb index 991d771ce..4417a2806 100644 --- a/app/views/shared/_subnavigation.html.erb +++ b/app/views/shared/_subnavigation.html.erb @@ -5,21 +5,24 @@ <%= layout_menu_link_to t("layouts.header.debates"), debates_path, controller_name == 'debates', - accesskey: "1" %> + accesskey: "1", + title: t("shared.go_to_page") + t("layouts.header.debates") %> <% end %>
  • <%= layout_menu_link_to t("layouts.header.proposals"), proposals_path, controller_name == 'proposals', - accesskey: "2" %> + accesskey: "2", + title: t("shared.go_to_page") + t("layouts.header.proposals") %>
  • <% if feature?(:polls) %>
  • <%= layout_menu_link_to t("layouts.header.poll_questions"), polls_path, controller_name == "polls", - accesskey: "3" %> + accesskey: "3", + title: t("shared.go_to_page") + t("layouts.header.poll_questions") %>
  • <% end %> <% if feature?(:spending_proposals) %> @@ -35,14 +38,16 @@ <%= layout_menu_link_to t("layouts.header.budgets"), budgets_path, controller_name == "budgets" || controller_name == "investments", - accesskey: "4" %> + accesskey: "4", + title: t("shared.go_to_page") + t("layouts.header.budgets") %> <% end %>
  • <%= link_to t("layouts.header.more_info"), more_info_path, accesskey: "5", - class: ("active" if current_page?(more_info_path)) %> + class: ("active" if current_page?(more_info_path)), + title: t("shared.go_to_page") + t("layouts.header.more_info") %>
  • diff --git a/config/locales/en.yml b/config/locales/en.yml index 4b4f77d2d..fdfd821bd 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -527,6 +527,7 @@ en: proposals: Proposals budget: Participatory budget searcher: Searcher + go_to_page: "Go to page of " social: blog: "%{org} Blog" facebook: "%{org} Facebook" diff --git a/config/locales/es.yml b/config/locales/es.yml index 12cb9693f..ca5b33a4e 100755 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -527,6 +527,7 @@ es: proposals: Propuestas budget: Presupuestos participativos searcher: Buscador + go_to_page: "Ir a la página de " social: blog: "Blog de %{org}" facebook: "Facebook de %{org}"