Adds mailer template for user invites

This commit is contained in:
Alberto Garcia Cabeza
2016-06-27 15:37:45 +02:00
parent 947b2bcb0d
commit a2a2960867
3 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
<td style="padding-bottom: 20px; padding-left: 10px;">
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
<%= t('mailers.user_invites.title',
org: Setting['org_name']) %>
</h1>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invites.text') %>
</p>
<p style="text-align: center;">
<%= link_to t('mailers.user_invites.button'), new_user_registration_path, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %>
</p>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invites.ignore') %>
</p>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t('mailers.user_invites.thanks') %>
</p>
</td>

View File

@@ -46,3 +46,9 @@ en:
direct_message_for_sender: direct_message_for_sender:
subject: "You have send a new private message" subject: "You have send a new private message"
title_html: "You have send a new private message to <strong>%{receiver}</strong> with the content:" title_html: "You have send a new private message to <strong>%{receiver}</strong> with the content:"
user_invites:
ignore: "Please, if you have not requested this invite ignore this email."
text: "To start participating complete your registration in the Open Government Portal of the Madrid City Council."
thanks: "Thank you very much."
title: "Complete your registration in %{org}"
button: Complete registration

View File

@@ -46,3 +46,9 @@ es:
direct_message_for_sender: direct_message_for_sender:
subject: "Has enviado un nuevo mensaje privado" subject: "Has enviado un nuevo mensaje privado"
title_html: "Has enviado un nuevo mensaje privado a <strong>%{receiver}</strong> con el siguiente contenido:" title_html: "Has enviado un nuevo mensaje privado a <strong>%{receiver}</strong> con el siguiente contenido:"
user_invites:
ignore: "Por favor, si no has solicitado esta invitación ignora este email."
text: "Para empezar a participar completa tu registro en el Portal de Gobierno Abierto del Ayuntamiento de Madrid."
thanks: "Muchas gracias."
title: "Completa tu registro en %{org}"
button: Completar registro