diff options
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/service_desk_verification_triggered_email.html.haml | 18 | ||||
-rw-r--r-- | app/views/notify/service_desk_verification_triggered_email.text.erb | 10 |
2 files changed, 28 insertions, 0 deletions
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 = '<a href="%{project_link}" target="_blank" rel="noopener noreferrer" class="highlight">'.html_safe % { project_link: project_link} +- project_name = @service_desk_setting.project.human_name +- project_link_end = '</a>'.html_safe +- strong_open = '<strong>'.html_safe +- strong_close = '</strong>'.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.') %> |