diff --git a/app/views/user_mailer/api_token_granted_notification.html.erb b/app/views/user_mailer/api_token_granted_notification.html.erb index bf43579..82eb955 100644 --- a/app/views/user_mailer/api_token_granted_notification.html.erb +++ b/app/views/user_mailer/api_token_granted_notification.html.erb @@ -1,6 +1,6 @@ -
<% t('custom_devise.hello') %><%= @user.name %>
+<% _('Hello') %><%= @user.name %>
-<% t('helpers.api_granted') %>"<%= link_to t('helpers.api_view_token'), controller: "users", action: "edit" %>". +<% _('You have been granted permission by your organisation to use our API.') %>"<%= link_to _('Your API token and instructions for using the API endpoints can be found here.'), controller: "users", action: "edit" %>".
diff --git a/app/views/user_mailer/permissions_change_notification.html.erb b/app/views/user_mailer/permissions_change_notification.html.erb index 10e3c8a..68bfe57 100644 --- a/app/views/user_mailer/permissions_change_notification.html.erb +++ b/app/views/user_mailer/permissions_change_notification.html.erb @@ -1,4 +1,4 @@ -<%= t('custom_devise.hello') %> <%= @project_group.user.name %>
+<%= _('Hello') %> <%= @project_group.user.name %>
<% access_level = "read-only" @@ -9,4 +9,4 @@ end %> -<%= t('helpers.mailer.permission_relating') %>"<%= link_to @project_group.project.title, url_for(action: 'show', controller: 'projects', id: @project_group.project.id, locale: I18n.default_locale) %>"<%= t('helpers.mailer.changed') %><%= access_level %> <%= t('helpers.mailer.access') %>
+<%= ('Your permissions relating to') %>"<%= link_to @project_group.project.title, url_for(action: 'show', controller: 'projects', id: @project_group.project.id, locale: I18n.default_locale) %>"<%= _(' have changed. You now have') %><%= access_level %> <%= _('access.') %>
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 79f8d29..fb6978c 100644 --- a/app/views/user_mailer/project_access_removed_notification.html.erb +++ b/app/views/user_mailer/project_access_removed_notification.html.erb @@ -1,3 +1,3 @@ -<%= t('custom_devise.hello') %><%= @user.name %>
+<%= _('Hello') %><%= @user.name %>
-<%= t('helpers.mailer.access_to') %>"<%= @project.title %>"<%= t('helpers.mailer.removed') %>
+<%= _('Your access to ') %>"<%= @project.title %>"<%= _(' has been removed.') %>
diff --git a/app/views/user_mailer/sharing_notification.html.erb b/app/views/user_mailer/sharing_notification.html.erb index f93548b..c350ee3 100644 --- a/app/views/user_mailer/sharing_notification.html.erb +++ b/app/views/user_mailer/sharing_notification.html.erb @@ -1,4 +1,4 @@ -<%= t('custom_devise.hello') %> <%= @project_group.user.name %>
+<%= _('Hello') %> <%= @project_group.user.name %>
<% access_level = "read-only" @@ -9,5 +9,5 @@ end %> -<%= t('helpers.mailer.given') %><%= access_level %><%= t('helpers.mailer.access_two') %><%= link_to @project_group.project.title, url_for(action: 'show', controller: 'projects', id: @project_group.project.id, locale: I18n.default_locale) %>".
+<%= _('You have been given ') %><%= access_level %><%= _(' access to') %><%= link_to @project_group.project.title, url_for(action: 'show', controller: 'projects', id: @project_group.project.id, locale: I18n.default_locale) %>".