From 15af94928b9329672b1aae7b4c2e5e557d27dbe9 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Thu, 9 Jun 2016 16:01:38 +0200 Subject: [PATCH] Adds styles and texts for direct messages mailer --- app/assets/images/icon_mailer_reply.png | Bin 0 -> 230 bytes app/views/mailer/direct_message.html.erb | 16 +++++++++++++++- config/locales/mailers.en.yml | 4 +++- config/locales/mailers.es.yml | 4 +++- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 app/assets/images/icon_mailer_reply.png diff --git a/app/assets/images/icon_mailer_reply.png b/app/assets/images/icon_mailer_reply.png new file mode 100644 index 0000000000000000000000000000000000000000..0c9159e8451c68303b48a710cd6cbd4199a3bd3f GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eK!3HFi66di4DVAa<&kznEsNqQI0P;BtJR*x3 z7`TN&n2}-D90{Ocho_5Uh{nXD=Qr{mG7xBe=)Z9B!sSbR!WOtD@r0d_nj*=t(Y-;} zh*7pytLuVAP|8h>%m>r`)bH<2-}^XziuV!qFU2j{F@`N(o4EEmbstW-zW9K#c;bnW z_P-i>X)d}S4;adoT|A$D=L6q+akJpycQ17H62q1&^_U;MvZMa=+(joPi{4C=syo0w YwL?*(&Fkngpqm&xUHx3vIVCg!0GPy3$p8QV literal 0 HcmV?d00001 diff --git a/app/views/mailer/direct_message.html.erb b/app/views/mailer/direct_message.html.erb index fd1e45acc..c974a7644 100644 --- a/app/views/mailer/direct_message.html.erb +++ b/app/views/mailer/direct_message.html.erb @@ -6,4 +6,18 @@

<%= @direct_message.body %>

- \ No newline at end of file + + + + + + + +
+ <%= link_to user_path(@direct_message.sender_id), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 200px; display: inline-block;", target: "_blank" do %> + <%= image_tag('icon_mailer_reply.png', style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %> + <%= t('mailers.direct_message.reply', + sender: @direct_message.sender.name) %> + <% end %> +
+ diff --git a/config/locales/mailers.en.yml b/config/locales/mailers.en.yml index 1c5c6e42d..c90ca12c9 100755 --- a/config/locales/mailers.en.yml +++ b/config/locales/mailers.en.yml @@ -32,4 +32,6 @@ en: unfeasible_html: "From the Madrid City Council we want to thank you for your participation in the participatory budgets of the city of Madrid. We regret to inform you that your proposal '%{title}' will be excluded from this participatory process for the following reason:" proposal_notification: share: Share - comment: Comment proposal \ No newline at end of file + comment: Comment proposal + direct_message: + reply: Reply to %{sender} \ No newline at end of file diff --git a/config/locales/mailers.es.yml b/config/locales/mailers.es.yml index ada63694b..75ff487d1 100644 --- a/config/locales/mailers.es.yml +++ b/config/locales/mailers.es.yml @@ -32,4 +32,6 @@ es: unfeasible_html: "Desde el Ayuntamiento de Madrid queremos agradecer tu participación en los Presupuestos Participativos de la ciudad de Madrid. Lamentamos informarte de que tu propuesta '%{title}' quedará excluida de este proceso participativo por el siguiente motivo:" proposal_notification: share: Compartir - comment: Comentar propuesta \ No newline at end of file + comment: Comentar propuesta + direct_message: + reply: Responder a %{sender} \ No newline at end of file