Files
nairobi/app/views/mailer/direct_message_for_receiver.html.erb
Javi Martín 87d7923f0d Open mailer links in the same window
We do it most of the time, so I'm not sure why we weren't doing it in
these cases.
2023-10-24 16:31:39 +02:00

37 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 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>