In the mail section we have very different indentations and formatting in texts with sanitize, links and texts with interpolations. In my opinion it helps a lot to have clearer indentations in these cases. This may not be the best way to indent them, but at least I think it is clearer than it was and at least relatively unified.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
<td style="<%= css_for_mailer_content %>">
|
|
<h1 style="<%= css_for_mailer_heading %>">
|
|
<%= @direct_message.title %>
|
|
</h1>
|
|
|
|
<div style="<%= css_for_mailer_text %>">
|
|
<%= mailer_simple_format(@direct_message.body) %>
|
|
</div>
|
|
|
|
<table style="width: 100%; border-top: 1px solid #DEE0E3; margin-top: 60px;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="padding-bottom: 12px; padding-top: 24px; text-align: center;">
|
|
<%= link_to user_url(@direct_message.sender), style: css_for_mailer_button, target: "_blank" do %>
|
|
<%= t("mailers.direct_message_for_receiver.reply",
|
|
sender: @direct_message.sender.name) %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p style="<%= css_for_mailer_text %>">
|
|
<%= sanitize(
|
|
t("mailers.direct_message_for_receiver.unsubscribe_text",
|
|
notifications: link_to(
|
|
t("mailers.config.notifications_link"),
|
|
edit_subscriptions_url(token: @token),
|
|
style: css_for_mailer_link)
|
|
),
|
|
attributes: %w[href style]
|
|
) %>
|
|
</p>
|
|
</td>
|