From f2ec836587e46c91e2a84175b7dc0eab393b32e6 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 30 Jul 2018 17:57:25 +0200 Subject: [PATCH] Removes custom content on mailers --- .../mailer/budget_investment_created.html.erb | 4 ---- .../mailer/budget_investment_selected.html.erb | 9 +-------- .../budget_investment_unfeasible.html.erb | 13 +------------ .../budget_investment_unselected.html.erb | 15 +-------------- .../unfeasible_spending_proposal.html.erb | 13 +------------ config/locales/en/mailers.yml | 17 ++--------------- config/locales/es/mailers.yml | 17 ++--------------- 7 files changed, 8 insertions(+), 80 deletions(-) diff --git a/app/views/mailer/budget_investment_created.html.erb b/app/views/mailer/budget_investment_created.html.erb index 85052bedd..00910327a 100644 --- a/app/views/mailer/budget_investment_created.html.erb +++ b/app/views/mailer/budget_investment_created.html.erb @@ -35,9 +35,5 @@

<%= t("mailers.budget_investment_created.sincerely") %> -
- - <%= t("mailers.budget_investment_created.signatory") %> -

diff --git a/app/views/mailer/budget_investment_selected.html.erb b/app/views/mailer/budget_investment_selected.html.erb index 71d0a475c..3271add90 100644 --- a/app/views/mailer/budget_investment_selected.html.erb +++ b/app/views/mailer/budget_investment_selected.html.erb @@ -4,11 +4,6 @@ <%= t("mailers.budget_investment_selected.hi") %>

-

- <%= t("mailers.budget_investment_selected.selected_html", - title: @investment.title) %> -

-

<%= t("mailers.budget_investment_selected.share") %>

@@ -31,8 +26,6 @@

- <%= t("mailers.budget_investment_selected.sincerely") %>
- - <%= t("mailers.budget_investment_selected.signatory") %> + <%= t("mailers.budget_investment_selected.sincerely") %>

\ No newline at end of file diff --git a/app/views/mailer/budget_investment_unfeasible.html.erb b/app/views/mailer/budget_investment_unfeasible.html.erb index 3bed46cec..710afce72 100644 --- a/app/views/mailer/budget_investment_unfeasible.html.erb +++ b/app/views/mailer/budget_investment_unfeasible.html.erb @@ -4,11 +4,6 @@ <%= t("mailers.budget_investment_unfeasible.hi") %>

-

- <%= t("mailers.budget_investment_unfeasible.unfeasible_html", - title: @investment.title) %> -

-

<%= @investment.unfeasibility_explanation %>

@@ -19,17 +14,11 @@ new_budget_investment_url(@investment.budget), style: "color: #2895F1; text-decoration: underline;")) %>

-

- <%= t("mailers.budget_investment_unfeasible.reconsider_html", code: @investment.code) %> -

-

<%= t("mailers.budget_investment_unfeasible.sorry") %>

- <%= t("mailers.budget_investment_unfeasible.sincerely") %>
- - <%= t("mailers.budget_investment_unfeasible.signatory") %> + <%= t("mailers.budget_investment_unfeasible.sincerely") %>

\ No newline at end of file diff --git a/app/views/mailer/budget_investment_unselected.html.erb b/app/views/mailer/budget_investment_unselected.html.erb index ec0224d77..c57576b6f 100644 --- a/app/views/mailer/budget_investment_unselected.html.erb +++ b/app/views/mailer/budget_investment_unselected.html.erb @@ -4,24 +4,11 @@ <%= t("mailers.budget_investment_unselected.hi") %>

-

- <%= t("mailers.budget_investment_unselected.unselected_html", - title: @investment.title) %> -

- -

- <%= t("mailers.budget_investment_unselected.participate_html", - url: link_to(t("mailers.budget_investment_unselected.participate_url"), - budget_url(@investment.budget), style: "color: #2895F1; text-decoration: underline;")) %> -

-

<%= t("mailers.budget_investment_unselected.thanks") %>

- <%= t("mailers.budget_investment_unselected.sincerely") %>
- - <%= t("mailers.budget_investment_unselected.signatory") %> + <%= t("mailers.budget_investment_unselected.sincerely") %>

\ No newline at end of file diff --git a/app/views/mailer/unfeasible_spending_proposal.html.erb b/app/views/mailer/unfeasible_spending_proposal.html.erb index 1e55106f1..ac07336cd 100644 --- a/app/views/mailer/unfeasible_spending_proposal.html.erb +++ b/app/views/mailer/unfeasible_spending_proposal.html.erb @@ -4,11 +4,6 @@ <%= t("mailers.unfeasible_spending_proposal.hi") %>

-

- <%= t("mailers.unfeasible_spending_proposal.unfeasible_html", - title: @spending_proposal.title) %> -

-

<%= @spending_proposal.feasible_explanation %>

@@ -19,17 +14,11 @@ new_spending_proposal_url, style: "color: #2895F1; text-decoration: underline;")) %>

-

- <%= t("mailers.unfeasible_spending_proposal.reconsider_html", code: @spending_proposal.code) %> -

-

<%= t("mailers.unfeasible_spending_proposal.sorry") %>

- <%= t("mailers.unfeasible_spending_proposal.sincerely") %>
- - <%= t("mailers.unfeasible_spending_proposal.signatory") %> + <%= t("mailers.unfeasible_spending_proposal.sincerely") %>

\ No newline at end of file diff --git a/config/locales/en/mailers.yml b/config/locales/en/mailers.yml index c3c945e32..daf1ef259 100644 --- a/config/locales/en/mailers.yml +++ b/config/locales/en/mailers.yml @@ -11,7 +11,7 @@ en: email_verification: click_here_to_verify: this link instructions_2_html: This email will verify your account with %{document_type} %{document_number}. If these don't belong to you, please don't click on the previous link and ignore this email. - instructions_html: To complete the verification of your user account in the Open Government Portal, you must click %{verification_link}. + instructions_html: To complete the verification of your user account you must click %{verification_link}. subject: Confirm your email thanks: Thank you very much. title: Confirm your account using the following link @@ -24,12 +24,9 @@ en: hi: "Dear user," new_html: "For all these, we invite you to elaborate a new proposal that ajusts to the conditions of this process. You can do it following this link: %{url}." new_href: "new investment project" - reconsider_html: "If you believe that the rejected proposal meets the requirements to be an investment proposal, you can communicate this, within 48 hours, responding to the email address examples@consul.es. Including the code %{code} in the subject of the email." sincerely: "Sincerely" - signatory: "DEPARTMENT OF PUBLIC PARTICIPATION" sorry: "Sorry for the inconvenience and we again thank you for your invaluable participation." subject: "Your investment project '%{code}' has been marked as unfeasible" - unfeasible_html: "From the City Council we want to thank you for your participation in the participatory budgets. We regret to inform you that your proposal '%{title}' will be excluded from this participatory process for the following reason:" proposal_notification_digest: info: "Here are the new notifications that have been published by authors of the proposals that you have supported in %{org_name}." title: "Proposal notifications in %{org_name}" @@ -47,7 +44,7 @@ en: title_html: "You have send a new private message to %{receiver} with the content:" user_invite: ignore: "If you have not requested this invitation don't worry, you can ignore this email." - text: "Thank you for applying to join %{org}! In seconds you can start to decide the city you want, just fill the form below:" + text: "Thank you for applying to join %{org}! In seconds you can start to participate, just fill the form below:" thanks: "Thank you very much." title: "Welcome to %{org}" button: Complete registration @@ -60,33 +57,23 @@ en: follow_html: "We will inform you about how the process progresses, which you can also follow on %{link}." follow_link: "Participatory Budgets" sincerely: "Sincerely," - signatory: "DEPARTMENT OF PUBLIC PARTICIPATION" share: "Share your project" budget_investment_unfeasible: hi: "Dear user," new_html: "For all these, we invite you to elaborate a new investment that ajusts to the conditions of this process. You can do it following this link: %{url}." new_href: "new investment project" - reconsider_html: "If you believe that the rejected investment meets the requirements to be an investment project, you can communicate this, within 48 hours, responding to the email address examples@consul.es. Including the code %{code} in the subject of the email." sincerely: "Sincerely" - signatory: "DEPARTMENT OF PUBLIC PARTICIPATION" sorry: "Sorry for the inconvenience and we again thank you for your invaluable participation." subject: "Your investment project '%{code}' has been marked as unfeasible" - unfeasible_html: "From the City Council we want to thank you for your participation in the participatory budgets. We regret to inform you that your investment '%{title}' will be excluded from this participatory process for the following reason:" budget_investment_selected: subject: "Your investment project '%{code}' has been selected" hi: "Dear user," - selected_html: "From the City Council we want to thank you for your participation in the participatory budgets. We would like to inform you that your investment project '%{title}' has been selected for the final voting phase that will happen from May 15th to June 30th." share: "Start to get votes, share your investment project on social networks. Share is essential to make it a reality." share_button: "Share your investment project" thanks: "Thank you again for participating." sincerely: "Sincererly" - signatory: "DEPARTMENT OF PUBLIC PARTICIPATION" budget_investment_unselected: subject: "Your investment project '%{code}' has not been selected" hi: "Dear user," - unselected_html: "From the City Council we want to thank you for your participation in the participatory budgets. We regret to inform you that your investment project '%{title}' has not been selected for the final voting phase." - participate_html: "You can continue participating in the final voting phase voting for investments projects from May 15th to June 30th." - participate_url: "participate in the final voting" thanks: "Thank you again for participating." sincerely: "Sincererly" - signatory: "DEPARTMENT OF PUBLIC PARTICIPATION" \ No newline at end of file diff --git a/config/locales/es/mailers.yml b/config/locales/es/mailers.yml index f66c5cadf..abd887f22 100644 --- a/config/locales/es/mailers.yml +++ b/config/locales/es/mailers.yml @@ -11,7 +11,7 @@ es: email_verification: click_here_to_verify: en este enlace instructions_2_html: Este email es para verificar tu cuenta con %{document_type} %{document_number}. Si esos no son tus datos, por favor no pulses el enlace anterior e ignora este email. - instructions_html: Para terminar de verificar tu cuenta de usuario en el Portal de Gobierno Abierto, necesitamos que pulses %{verification_link}. + instructions_html: Para terminar de verificar tu cuenta de usuario pulsa %{verification_link}. subject: Verifica tu email thanks: Muchas gracias. title: Verifica tu cuenta con el siguiente enlace @@ -24,22 +24,16 @@ es: hi: "Estimado usuario," new_html: 'Por todo ello, te invitamos a que elabores una nueva propuesta que se ajuste a las condiciones de este proceso. Esto lo puedes hacer en este enlace: %{url}.' new_href: "nueva propuesta de inversión" - reconsider_html: "Si consideras que la propuesta rechazada cumple los requisitos para mantenerla como propuesta de inversión, podrás comunicarlo, en el plazo de 48 horas, al correo example@consul.es, indicando necesariamente para su tramitación el código %{code} como asunto del correo, correspondiente a tu propuesta." sincerely: "Atentamente" - signatory: "DIRECCIÓN GENERAL DE PARTICIPACIÓN CIUDADANA" sorry: "Sentimos las molestias ocasionadas y volvemos a darte las gracias por tu inestimable participación." subject: "Tu propuesta de inversión '%{code}' ha sido marcada como inviable" - unfeasible_html: "Desde el Ayuntamiento queremos agradecer tu participación en los Presupuestos Participativos. Lamentamos informarte de que tu propuesta '%{title}' quedará excluida de este proceso participativo por el siguiente motivo:" budget_investment_unfeasible: hi: "Estimado usuario," new_html: 'Por todo ello, te invitamos a que elabores un nuevo proyecto de gasto que se ajuste a las condiciones de este proceso. Esto lo puedes hacer en este enlace: %{url}.' new_href: "nuevo proyecto de gasto" - reconsider_html: "Si consideras que el proyecto rechazado cumple los requisitos para mantenerlo como proyecto de gasto, podrás comunicarlo, en el plazo de 48 horas, al correo example@consul.es, indicando necesariamente para su tramitación el código %{code} como asunto del correo, correspondiente a tu proyecto." sincerely: "Atentamente" - signatory: "DIRECCIÓN GENERAL DE PARTICIPACIÓN CIUDADANA" sorry: "Sentimos las molestias ocasionadas y volvemos a darte las gracias por tu inestimable participación." subject: "Tu proyecto de gasto '%{code}' ha sido marcado como inviable" - unfeasible_html: "Desde el Ayuntamiento queremos agradecer tu participación en los Presupuestos Participativos. Lamentamos informarte de que tu proyecto '%{title}' quedará excluido de este proceso participativo por el siguiente motivo:" proposal_notification_digest: info: "A continuación te mostramos las nuevas notificaciones que han publicado los autores de las propuestas que estás apoyando en %{org_name}." title: "Notificaciones de propuestas en %{org_name}" @@ -57,7 +51,7 @@ es: title_html: "Has enviado un nuevo mensaje privado a %{receiver} con el siguiente contenido:" user_invite: ignore: "Si no has solicitado esta invitación no te preocupes, puedes ignorar este correo." - text: "¡Gracias por solicitar unirte a %{org}! En unos segundos podrás empezar a decidir la ciudad que quieres, sólo tienes que rellenar el siguiente formulario:" + text: "¡Gracias por solicitar unirte a %{org}! En unos segundos podrás empezar a participar, sólo tienes que rellenar el siguiente formulario:" thanks: "Muchas gracias." title: "Bienvenido a %{org}" button: Completar registro @@ -70,23 +64,16 @@ es: follow_html: "Te informaremos de cómo avanza el proceso, que también puedes seguir en la página de %{link}." follow_link: "Presupuestos participativos" sincerely: "Atentamente," - signatory: "DIRECCIÓN GENERAL DE PARTICIPACIÓN CIUDADANA" share: "Comparte tu proyecto" budget_investment_selected: subject: "Tu proyecto de gasto '%{code}' ha sido seleccionado" hi: "Estimado/a usuario/a" - selected_html: "Desde el Ayuntamiento de Madrid agradecemos que hayas participado con tu idea en los Presupuestos Participativos. Te informamos de que tu proyecto '%{title}' ha sido seleccionado y pasa a la fase de votación final que tiene lugar desde el 15 de mayo hasta el 30 de junio de 2017." share: "Empieza ya a conseguir votos, comparte tu proyecto de gasto en redes sociales. La difusión es fundamental para conseguir que se haga realidad." share_button: "Comparte tu proyecto" thanks: "Gracias de nuevo por tu participación." sincerely: "Atentamente" - signatory: "DIRECCIÓN GENERAL DE PARTICIPACIÓN CIUDADANA" budget_investment_unselected: subject: "Tu proyecto de gasto '%{code}' no ha sido seleccionado" hi: "Estimado/a usuario/a" - unselected_html: "Desde el Ayuntamiento de Madrid agradecemos que hayas participado con tu idea en los Presupuestos Participativos. Lamentamos informarte de que tu proyecto '%{title}' no ha sido seleccionado para la fase de votación final." - participate_html: "Puedes continuar participando en la votación final votando proyectos para toda la ciudad y el distrito que elijas desde el 15 de mayo hasta el 30 de junio de 2017." - participate_url: "participes en la votación final" thanks: "Gracias de nuevo por tu participación." sincerely: "Atentamente" - signatory: "DIRECCIÓN GENERAL DE PARTICIPACIÓN CIUDADANA"