Adds proposal notification digest mailer
This commit is contained in:
51
app/views/mailer/proposal_notification_digest.html.erb
Normal file
51
app/views/mailer/proposal_notification_digest.html.erb
Normal file
@@ -0,0 +1,51 @@
|
||||
<td>
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-left: 10px;">
|
||||
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
|
||||
<%= t('mailers.proposal_notification_digest.title') %>
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- EACH PROPOSAL NOTIFICATION DO -->
|
||||
<table style="width: 100%; border-top: 1px solid #DEE0E3; padding-top: 12px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-bottom: 20px; padding-left: 10px;">
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 20px;font-weight: bold;line-height: 24px; margin: 0;">
|
||||
<%= @notification.title %>
|
||||
</p>
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px; margin-top: 0; color: #cccccc;">
|
||||
<%= @notification.proposal.title %> • <%= @notification.proposal.created_at.to_date %> • <%= @notification.proposal.author.name %>
|
||||
</p>
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
||||
<%= @notification.body %>
|
||||
</p>
|
||||
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding-bottom: 12px;">
|
||||
<%= link_to "#comments", 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: 160px; display: inline-block;" do %>
|
||||
<%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
|
||||
<%= t('mailers.proposal_notification_digest.share') %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to "#social-share", 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: 160px; display: inline-block; margin-left: 12px;" do %>
|
||||
<%= image_tag('icon_mailer_comment.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
|
||||
<%= t('mailers.proposal_notification_digest.comment') %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- END -->
|
||||
</td>
|
||||
@@ -33,5 +33,9 @@ en:
|
||||
proposal_notification:
|
||||
share: Share
|
||||
comment: Comment proposal
|
||||
proposal_notification_digest:
|
||||
title: You received the following notifications
|
||||
share: Share
|
||||
comment: Comment proposal
|
||||
direct_message:
|
||||
reply: Reply to %{sender}
|
||||
@@ -33,5 +33,9 @@ es:
|
||||
proposal_notification:
|
||||
share: Compartir
|
||||
comment: Comentar propuesta
|
||||
proposal_notification_digest:
|
||||
title: Has recibido las siguientes notificaciones
|
||||
share: Compartir
|
||||
comment: Comentar propuesta
|
||||
direct_message:
|
||||
reply: Responder a %{sender}
|
||||
Reference in New Issue
Block a user