From 728edf64a516dd2a2a95aefe1405cbeee4d977fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Sat, 7 Oct 2017 19:12:58 +0200 Subject: [PATCH] Added "participate in other polls" link in poll show --- app/views/polls/show.html.erb | 2 ++ config/locales/en/general.yml | 1 + config/locales/es/general.yml | 1 + 3 files changed, 4 insertions(+) diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 5ec66751c..7d53fcb50 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -55,6 +55,8 @@ <%= t('poll_questions.show.voted_token') %> <% end %> + + <%= link_to t("polls.show.participate_in_other_polls"), polls_path, class: "button" %>pconfig/locales/en/general.yml diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index 297ec276a..413a6abf8 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -494,6 +494,7 @@ en: zoom_plus: Expand image read_more: "Read more about %{answer}" read_less: "Read less about %{answer}" + participate_in_other_polls: Participate in other polls poll_questions: create_question: "Create question" default_valid_answers: "Yes, No" diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index da81699d0..b8747406b 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -494,6 +494,7 @@ es: zoom_plus: Ampliar imagen read_more: "Leer más sobre %{answer}" read_less: "Leer menos sobre %{answer}" + participate_in_other_polls: Participar en otras votaciones poll_questions: create_question: "Crear pregunta para votación" default_valid_answers: "Sí, No"