diff --git a/app/views/user_mailer/new_comment.html.erb b/app/views/user_mailer/new_comment.html.erb index b922759..3eafb34 100644 --- a/app/views/user_mailer/new_comment.html.erb +++ b/app/views/user_mailer/new_comment.html.erb @@ -1,7 +1,7 @@ <% tool_name = Rails.configuration.branding[:application][:name] commenter_name = @commenter.name - plan_title = @plan.title + plan_link = link_to(@plan.title, @plan) user_name = @collaborator.name %> <% FastGettext.with_locale FastGettext.default_locale do %> @@ -9,9 +9,9 @@ <%= _('Hello %{user_name}') %{ :user_name => user_name } %>
- <%= _('%{commenter_name} has commented on the plan %{plan_title}. To view the comments, '\ - 'please visit the My Dashboard page in %{tool_name} and open your plan.') %{ :plan_title => plan_title, - :commenter_name => commenter_name, :tool_name => tool_name } %> + <%= raw(_('%{commenter_name} has commented on the plan %{plan_link}. To view the comments, '\ + 'please visit the My Dashboard page in %{tool_name} and open your plan or click the link above.') %{ :plan_link => plan_link, + :commenter_name => commenter_name, :tool_name => tool_name }) %>
<%= render partial: 'email_signature' %> <% end %>