diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index b4b34e3..44efc03 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -14,7 +14,7 @@ @user = user FastGettext.with_locale FastGettext.default_locale do mail(to: @role.user.email, - subject: _("You have been given access to a Data Management Plan")) + subject: "#{_('A Data Management Plan in ')} #{Rails.configuration.branding[:application][:name]} #{_(' has been shared with you')}") end end @@ -22,7 +22,7 @@ @role = role FastGettext.with_locale FastGettext.default_locale do mail(to: @role.user.email, - subject: _("DMP permissions changed")) + subject: "#{_('Changed permissions on a DMP in')} #{Rails.configuration.branding[:application][:name]}") end end @@ -31,7 +31,7 @@ @plan = plan FastGettext.with_locale FastGettext.default_locale do mail(to: @user.email, - subject: _("DMP access removed")) + subject: "#{_('Permissions removed on a DMP in')} #{Rails.configuration.branding[:application][:name]}") end end @@ -39,7 +39,7 @@ @user = user FastGettext.with_locale FastGettext.default_locale do mail(to: @user.email, - subject: _('API Permission Granted')) + subject: "#{_('API rights in')} #{Rails.configuration.branding[:application][:name]}") end end end \ No newline at end of file diff --git a/app/views/user_mailer/project_access_removed_notification.html.erb b/app/views/user_mailer/project_access_removed_notification.html.erb index 4656bc5..4c74c21 100644 --- a/app/views/user_mailer/project_access_removed_notification.html.erb +++ b/app/views/user_mailer/project_access_removed_notification.html.erb @@ -1,5 +1,11 @@ <% FastGettext.with_locale FastGettext.default_locale do %> -

<%= _('Hello ') %> <%= @user.name %>

+

<%= _('Hello ') %><%= @user.email %>

-

<%= _('Your access to ') %>"<%= @plan.title %>"<%= _(' has been removed.') %>

+

<%= _('Your access to ') %>"<%= @plan.title %>"<%= _(' has been removed by ') %><%= @user.email %>.

+ +

+ <%=_('All the best,')%> +
+ <%= _('The ')%><%= Rails.configuration.branding[:application][:name] %><%=_(' team')%>. +

<% end %> \ No newline at end of file