From e2cbdfe48069fa6acc226f51d80ace348d17bf69 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Fri, 7 Apr 2017 18:30:30 +0200 Subject: [PATCH] adds polls section on more info pages --- app/views/pages/more_info/_polls.html.erb | 15 +++++++++++++++ app/views/pages/more_info/index.html.erb | 4 ++++ config/locales/pages.en.yml | 7 +++++++ config/locales/pages.es.yml | 7 +++++++ 4 files changed, 33 insertions(+) create mode 100644 app/views/pages/more_info/_polls.html.erb diff --git a/app/views/pages/more_info/_polls.html.erb b/app/views/pages/more_info/_polls.html.erb new file mode 100644 index 000000000..360558d99 --- /dev/null +++ b/app/views/pages/more_info/_polls.html.erb @@ -0,0 +1,15 @@ +
+
+

<%= t("pages.more_info.polls.title") %>

+

<%= t("pages.more_info.polls.description") %>

+
    +
  • + <%= t("pages.more_info.polls.feature_1", + link: link_to(t("pages.more_info.polls.feature_1_link", org_name: setting['org_name']), + new_user_registration_path)).html_safe %> +
  • +
  • <%= t("pages.more_info.polls.feature_2") %>
  • +
  • <%= t("pages.more_info.polls.feature_3") %>
  • +
+
+
diff --git a/app/views/pages/more_info/index.html.erb b/app/views/pages/more_info/index.html.erb index 4c40a9fee..940170ed0 100644 --- a/app/views/pages/more_info/index.html.erb +++ b/app/views/pages/more_info/index.html.erb @@ -24,6 +24,10 @@ <% if feature?(:budgets) %> <%= render "pages/more_info/budgets" %> <% end %> + + <% if feature?(:polls) %> + <%= render "pages/more_info/polls" %> + <% end %>
<%= render "pages/more_info/sidebar" %> diff --git a/config/locales/pages.en.yml b/config/locales/pages.en.yml index a8e8a1b47..c2a3a18fc 100755 --- a/config/locales/pages.en.yml +++ b/config/locales/pages.en.yml @@ -42,6 +42,13 @@ en: feature_4_html: "At the end there is a voting phase where it is decided on which part of the budget is spent." image_alt: "Different phases of a participatory budget" figcaption_html: '"Support phase" and "Voting" phase of participatory budgets.' + polls: + title: "Polls" + description: "Citizen proposals that reach 1% of support will be put to a vote." + feature_1: "To participate in the next poll you have to %{link} and verify your account." + feature_1_link: "sign up on %{org_name}" + feature_2: "All verified users over 16 years old can vote." + feature_3: "The results of all votes shall be binding on the government." faq: title: "Technical problems?" description: "Read the FAQs and solve your questions." diff --git a/config/locales/pages.es.yml b/config/locales/pages.es.yml index 652f03852..77591e697 100644 --- a/config/locales/pages.es.yml +++ b/config/locales/pages.es.yml @@ -42,6 +42,13 @@ es: feature_4_html: "Al final hay una fase de votación donde se decide en cuáles se gasta esa parte del presupuesto." image_alt: "Diferentes fases de un presupuesto participativo" figcaption_html: 'Fase de "Apoyos" y fase de "Votación" de los presupuestos participativos.' + polls: + title: "Votaciones" + description: "Las propuestas ciudadanas que alcancen el 1% de apoyos pasarán a votación." + feature_1: "Para participar en la próxima votación tienes que %{link} y verificar tu cuenta." + feature_1_link: "registrarte en %{org_name}" + feature_2: "Pueden votar todas las personas empadronadas en la ciudad mayores de 16 años." + feature_3: "Los resultados de todas las votaciones serán vinculantes para el gobierno." faq: title: "¿Problemas técnicos?" description: "Lee las preguntas frecuentes y resuelve tus dudas."