diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 717af88..13cab1e 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -64,9 +64,9 @@ def feedback_complete(recipient, plan, requestor) @requestor = requestor - @user = recipient - @plan = plan - + @user = recipient + @plan = plan + @phase = plan.phases.first if recipient.active? FastGettext.with_locale FastGettext.default_locale do mail(to: recipient.email, diff --git a/app/views/user_mailer/feedback_complete.html.erb b/app/views/user_mailer/feedback_complete.html.erb index dd2fe73..4fb6e6b 100644 --- a/app/views/user_mailer/feedback_complete.html.erb +++ b/app/views/user_mailer/feedback_complete.html.erb @@ -8,11 +8,11 @@

<%= _('Hello %{recipient_name}') % { recipient_name: recipient_name } %>

- <%= _("%{commenter} has finished providing feedback on the plan \"%{link_html}\". To view the comments, please visit the My Dashboard page in %{tool_name} and open your plan. Plan comments can be found adjacent to your answers in the tabbed panel next to guidance.").html_safe % { + <%= _("%{commenter} has finished providing feedback on the plan \"%{link_html}\". Comments can be found in the 'Write plan' tab on the right side of the page (Guidance/Comments).").html_safe % { commenter: requestor, - link_html: link_to(plan_name, plan_url(@plan)), + link_html: link_to(plan_name, edit_plan_url(@plan, phase_id: @phase.id)), tool_name: tool_name }%>

-<%= render partial: 'email_signature' %> \ No newline at end of file +<%= render partial: 'email_signature' %>