diff --git a/app/views/user_mailer/_email_signature.html.erb b/app/views/user_mailer/_email_signature.html.erb index b5dd4f4..1a13365 100644 --- a/app/views/user_mailer/_email_signature.html.erb +++ b/app/views/user_mailer/_email_signature.html.erb @@ -2,6 +2,7 @@ tool_name = Rails.configuration.branding[:application][:name] helpdesk_email = Rails.configuration.branding[:organisation][:helpdesk_email] email_subject = email_subject || _('Query or feedback related to %{tool_name}') %{ :tool_name => tool_name } + allow_change_prefs = allow_change_prefs || true # Override the default Rails route helper for the contact_us page IF an alternate contact_us url was defined # in the branding config file @@ -13,5 +14,5 @@ <%= _('The %{tool_name} team') %{:tool_name => tool_name} %>
- <%= _('You may change your notification preferences on your profile page.') %> <%= _('Please do not reply to this email.') %> <%= raw(_('If you have any questions or need help, please contact us at %{helpdesk_email} or visit %{contact_us}') %{ :helpdesk_email => mail_to(helpdesk_email, helpdesk_email, subject: email_subject), :contact_us => link_to(contact_us, contact_us) }) %> + <% if allow_change_prefs %><%= _('You may change your notification preferences on your profile page.') %><% end %> <%= _('Please do not reply to this email.') %> <%= raw(_('If you have any questions or need help, please contact us at %{helpdesk_email} or visit %{contact_us}') %{ :helpdesk_email => mail_to(helpdesk_email, helpdesk_email, subject: email_subject), :contact_us => link_to(contact_us, contact_us) }) %>
\ No newline at end of file diff --git a/app/views/user_mailer/feedback_notification.html.erb b/app/views/user_mailer/feedback_notification.html.erb index afe8420..e3007f2 100644 --- a/app/views/user_mailer/feedback_notification.html.erb +++ b/app/views/user_mailer/feedback_notification.html.erb @@ -7,6 +7,6 @@ %><%= _('Hello %{user_name},') % {user_name: recipient_name} %>
-<%= _('%{requestor} has requested feedback on a plan "%{plan_name}." To add comments, please visit the \'Plans\' page under the Admin menu in %{application_name} and open the plan.') % {requestor: requestor_name, plan_name: plan_name, application_name: tool_name} %>
+<%= _('%{requestor} has requested feedback on a plan "%{plan_name}." To add comments, please visit the \'Plans\' page under the Admin menu in %{application_name} and open the plan.') % {requestor: requestor_name, plan_name: plan_name, application_name: tool_name, allow_change_prefs: false} %>
<%= render partial: 'email_signature' %> <% end %> \ No newline at end of file