diff --git a/app/assets/images/icon_mailer_reply.png b/app/assets/images/icon_mailer_reply.png new file mode 100644 index 000000000..0c9159e84 Binary files /dev/null and b/app/assets/images/icon_mailer_reply.png differ 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