Add attributes for sanitize on unsubscribe link section
In the comments and direct message emails, the "attributes" was missing and in the reply email it was not in the right place.
This commit is contained in:
@@ -25,6 +25,6 @@
|
||||
style: "color: #2895F1; text-decoration: none;"
|
||||
),
|
||||
notification: User.human_attribute_name(:email_on_comment)
|
||||
)) %>
|
||||
), attributes: %w[href style]) %>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe_text",
|
||||
notifications: link_to(t("mailers.config.notifications_link"),
|
||||
edit_subscriptions_url(token: @token),
|
||||
style: "color: #2895F1; text-decoration: none;"))) %>
|
||||
style: "color: #2895F1; text-decoration: none;")),
|
||||
attributes: %w[href style]) %>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
style: "color: #2895F1; text-decoration: none;"
|
||||
),
|
||||
notification: User.human_attribute_name(:newsletter)
|
||||
)) %>
|
||||
), attributes: %w[href style]) %>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
style: "color: #2895F1; text-decoration: none;"
|
||||
),
|
||||
notification: User.human_attribute_name(:email_on_comment_reply)
|
||||
)) %>
|
||||
), attributes: %w[href style]) %>
|
||||
</p>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user