From fb0917026c4a8020808d68e959ee900880e097fd Mon Sep 17 00:00:00 2001
From: Julian Herrero
Date: Mon, 8 Jun 2020 11:28:13 +0700
Subject: [PATCH] Add processes feature info section in help page
---
app/views/pages/help/_processes.html.erb | 4 +++-
config/locales/en/pages.yml | 2 ++
config/locales/es/pages.yml | 2 ++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/app/views/pages/help/_processes.html.erb b/app/views/pages/help/_processes.html.erb
index da2f2b5ac..f53e4e20e 100644
--- a/app/views/pages/help/_processes.html.erb
+++ b/app/views/pages/help/_processes.html.erb
@@ -10,7 +10,9 @@
-
- <% link = link_to(t("pages.help.processes.link"), legislation_processes_path) %>
+ <%= sanitize(t("pages.help.processes.feature",
+ link: link_to(t("pages.help.processes.feature_link", org_name: setting["org_name"]),
+ new_user_registration_path))) %>
diff --git a/config/locales/en/pages.yml b/config/locales/en/pages.yml
index 4bf12e261..019668a49 100644
--- a/config/locales/en/pages.yml
+++ b/config/locales/en/pages.yml
@@ -44,6 +44,8 @@ en:
title: "Processes"
description: "In the %{link} section, citizens participate in the drafting and modification of regulations affecting the city and can give their opinion on municipal policies in previous debates."
link: "processes"
+ feature: "To participate in the processes you have to %{link} and verify your account."
+ feature_link: "register in %{org_name}"
faq:
title: "Technical problems?"
description: "Read the FAQs and solve your questions."
diff --git a/config/locales/es/pages.yml b/config/locales/es/pages.yml
index f0b2e7c74..faa92e447 100644
--- a/config/locales/es/pages.yml
+++ b/config/locales/es/pages.yml
@@ -44,6 +44,8 @@ es:
title: "Legislación colaborativa"
description: "En la sección de %{link} la ciudadanía participa en la elaboración y modificación de normativa que afecta a la ciudad y puede dar su opinión sobre las políticas municipales en debates previos."
link: "legislación colaborativa"
+ feature: "Para participar en la legislación colaborativa tienes que %{link} y verificar tu cuenta."
+ feature_link: "registrarte en %{org_name}"
faq:
title: "¿Problemas técnicos?"
description: "Lee las preguntas frecuentes y resuelve tus dudas."