Files
nairobi/app/views/mailer/newsletter.html.erb
Javi Martín 1a098dfcab Add and apply MultilineMethodCallBraceLayout rule
In order for this rule to work effectively when running `--autocorrect`,
we also need to enable the `ClosingParenthesisIndentation` rule.
2023-08-18 14:56:16 +02:00

22 lines
578 B
Plaintext

<td style="<%= css_for_mailer_content %>">
<p style="<%= css_for_mailer_text %>">
<%= auto_link_already_sanitized_html wysiwyg(@newsletter.body) %>
</p>
<p style="<%= css_for_mailer_text %>">
<%= sanitize(
t(
"mailers.config.unsubscribe_text",
notifications: link_to(
t("mailers.config.notifications_link"),
edit_subscriptions_url(token: @token),
style: css_for_mailer_link
),
notification: User.human_attribute_name(:newsletter)
),
attributes: %w[href style]
) %>
</p>
</td>