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.
This commit is contained in:
Javi Martín
2023-10-08 22:10:40 +02:00
parent 3753c42ab2
commit 87d7923f0d
2 changed files with 1 additions and 2 deletions

View File

@@ -11,7 +11,6 @@ module MailerHelper
link_to( link_to(
commentable.title, commentable.title,
valuation_comments_url(@email.commentable), valuation_comments_url(@email.commentable),
target: :blank,
style: "color: #2895F1; text-decoration:none;" style: "color: #2895F1; text-decoration:none;"
) )
end end

View File

@@ -11,7 +11,7 @@
<tbody> <tbody>
<tr> <tr>
<td style="padding-bottom: 12px; padding-top: 24px; text-align: center;"> <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 %> <%= link_to user_url(@direct_message.sender), style: css_for_mailer_button do %>
<%= t("mailers.direct_message_for_receiver.reply", <%= t("mailers.direct_message_for_receiver.reply",
sender: @direct_message.sender.name) %> sender: @direct_message.sender.name) %>
<% end %> <% end %>