From cd17aa65132de074aab9ae50ab7bbf7f16428546 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 5 Apr 2023 12:13:17 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- ...service_desk_verification_triggered_email.html.haml | 18 ++++++++++++++++++ .../service_desk_verification_triggered_email.text.erb | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 app/views/notify/service_desk_verification_triggered_email.html.haml create mode 100644 app/views/notify/service_desk_verification_triggered_email.text.erb (limited to 'app/views/notify') diff --git a/app/views/notify/service_desk_verification_triggered_email.html.haml b/app/views/notify/service_desk_verification_triggered_email.html.haml new file mode 100644 index 00000000000..f2174af9615 --- /dev/null +++ b/app/views/notify/service_desk_verification_triggered_email.html.haml @@ -0,0 +1,18 @@ +- user_name = '@' + @triggerer.username +- project_link = @service_desk_setting.project.web_url +- project_link_start = ''.html_safe % { project_link: project_link} +- project_name = @service_desk_setting.project.human_name +- project_link_end = ''.html_safe +- strong_open = ''.html_safe +- strong_close = ''.html_safe +- email_address = @service_desk_setting.custom_email +- smtp_host = @smtp_address + +%tr + %td.text-content + %p + = html_escape(s_('Notify|%{strong_open}%{user_name}%{strong_close} updated the custom email address credentials for the Service Desk of %{project_link_start}%{project_name}%{project_link_end} and triggered the verification process.')) % { user_name: user_name, project_link_start: project_link_start, project_name: project_name, project_link_end: project_link_end, strong_open: strong_open, strong_close: strong_close } + %p + = html_escape(s_('Notify|The provided custom email address is %{strong_open}%{email_address}%{strong_close} and uses the SMTP host %{strong_open}%{smtp_host}%{strong_close}.')) % { email_address: email_address, smtp_host: smtp_host, strong_open: strong_open, strong_close: strong_close } + %p + = s_('Notify|If this was a mistake you can change these settings or deactivate the custom email address in the project settings.') diff --git a/app/views/notify/service_desk_verification_triggered_email.text.erb b/app/views/notify/service_desk_verification_triggered_email.text.erb new file mode 100644 index 00000000000..98c79e2d2f1 --- /dev/null +++ b/app/views/notify/service_desk_verification_triggered_email.text.erb @@ -0,0 +1,10 @@ +<% user_name = '@' + @triggerer.username %> +<% project_name = @service_desk_setting.project.human_name %> +<% email_address = @service_desk_setting.custom_email %> +<% smtp_host = @smtp_address %> + +<%= s_('Notify|%{strong_open}%{user_name}%{strong_close} updated the custom email address credentials for the Service Desk of %{project_link_start}%{project_name}%{project_link_end} and triggered the verification process.') % { user_name: user_name, project_link_start: '', project_name: project_name, project_link_end: '', strong_open: '', strong_close: '' } %> + +<%= s_('Notify|The provided custom email address is %{strong_open}%{email_address}%{strong_close} and uses the SMTP host %{strong_open}%{smtp_host}%{strong_close}.') % { email_address: email_address, smtp_host: smtp_host, strong_open: '', strong_close: '' } %> + +<%= s_('Notify|If this was a mistake you can change these settings or deactivate the custom email address in the project settings.') %> -- cgit v1.2.3