Update "newsletter" notification email to add unsubscribe link
This commit is contained in:
@@ -2,4 +2,15 @@
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;line-height: 24px;">
|
||||
<%= auto_link_already_sanitized_html wysiwyg(@newsletter.body) %>
|
||||
</p>
|
||||
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 12px;font-weight: normal;line-height: 20px;">
|
||||
<%= sanitize(t("mailers.config.unsubscribe_text",
|
||||
notifications: link_to(
|
||||
t("mailers.config.notifications_link"),
|
||||
edit_subscriptions_url(token: @token),
|
||||
style: "color: #2895F1; text-decoration: none;"
|
||||
),
|
||||
notification: User.human_attribute_name(:newsletter)
|
||||
)) %>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user