Changes title and subject in email

This commit is contained in:
Alberto Garcia Cabeza
2016-06-15 20:49:29 +02:00
parent 0f1d6c1f19
commit 017ccfb378
4 changed files with 5 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ class Mailer < ApplicationMailer
@notifications = user.notifications.where(notifiable_type: "ProposalNotification") @notifications = user.notifications.where(notifiable_type: "ProposalNotification")
with_user(user) do with_user(user) do
mail(to: user.email, subject: "Email digest") mail(to: user.email, subject: t('mailers.proposal_notification_digest.title', org_name: Setting['org_name']))
end end
end end

View File

@@ -4,7 +4,8 @@
<tr> <tr>
<td style="padding-left: 10px;"> <td style="padding-left: 10px;">
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;"> <h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
<%= t('mailers.proposal_notification_digest.title') %> <%= t('mailers.proposal_notification_digest.title',
org_name: Setting['org_name']) %>
</h1> </h1>
</td> </td>
</tr> </tr>

View File

@@ -32,7 +32,7 @@ en:
subject: "Your investment project '%{code}' has been marked as unfeasible" subject: "Your investment project '%{code}' has been marked as unfeasible"
unfeasible_html: "From the Madrid City Council we want to thank you for your participation in the <strong>participatory budgets of the city of Madrid</strong>. We regret to inform you that your proposal <strong>'%{title}'</strong> will be excluded from this participatory process for the following reason:" unfeasible_html: "From the Madrid City Council we want to thank you for your participation in the <strong>participatory budgets of the city of Madrid</strong>. We regret to inform you that your proposal <strong>'%{title}'</strong> will be excluded from this participatory process for the following reason:"
proposal_notification_digest: proposal_notification_digest:
title: You received the following notifications title: "Proposal notifications in %{org_name}"
share: Share proposal share: Share proposal
comment: Comment proposal comment: Comment proposal
unsubscribe: "If you don't want receive proposal's notification, visit %{account} and unckeck 'Receive a summary of proposal notifications'." unsubscribe: "If you don't want receive proposal's notification, visit %{account} and unckeck 'Receive a summary of proposal notifications'."

View File

@@ -32,7 +32,7 @@ es:
subject: "Tu propuesta de inversión '%{code}' ha sido marcada como inviable" subject: "Tu propuesta de inversión '%{code}' ha sido marcada como inviable"
unfeasible_html: "Desde el Ayuntamiento de Madrid queremos agradecer tu participación en los <strong>Presupuestos Participativos de la ciudad de Madrid</strong>. Lamentamos informarte de que tu propuesta <strong>'%{title}'</strong> quedará excluida de este proceso participativo por el siguiente motivo:" unfeasible_html: "Desde el Ayuntamiento de Madrid queremos agradecer tu participación en los <strong>Presupuestos Participativos de la ciudad de Madrid</strong>. Lamentamos informarte de que tu propuesta <strong>'%{title}'</strong> quedará excluida de este proceso participativo por el siguiente motivo:"
proposal_notification_digest: proposal_notification_digest:
title: Has recibido las siguientes notificaciones title: "Notificaciones de propuestas en %{org_name}"
share: Compartir propuesta share: Compartir propuesta
comment: Comentar propuesta comment: Comentar propuesta
unsubscribe: "Si no quieres recibir notificaciones de propuestas, puedes entrar en %{account} y desmarcar la opción 'Recibir resumen de notificaciones sobre propuestas'." unsubscribe: "Si no quieres recibir notificaciones de propuestas, puedes entrar en %{account} y desmarcar la opción 'Recibir resumen de notificaciones sobre propuestas'."