Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-26 00:11:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-26 00:11:07 +0300
commit1c61faf876f0da721dde9dc52fb28ab0e7330c6d (patch)
treeb2c5330325d7cc53098dbcf53de1186f5b54bfba /app/views/notify
parenteccc2ec564f427460be5ffa6f9a6fb25f3f7fe6d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/notify')
-rw-r--r--app/views/notify/application_authorized_email.html.haml5
-rw-r--r--app/views/notify/application_authorized_email.text.erb7
-rw-r--r--app/views/notify/application_created_email.html.haml5
-rw-r--r--app/views/notify/application_created_email.text.erb7
4 files changed, 24 insertions, 0 deletions
diff --git a/app/views/notify/application_authorized_email.html.haml b/app/views/notify/application_authorized_email.html.haml
new file mode 100644
index 00000000000..0e4635422cc
--- /dev/null
+++ b/app/views/notify/application_authorized_email.html.haml
@@ -0,0 +1,5 @@
+%p
+ = _('Hi %{username}!') % { username: sanitize_name(@user.name) }
+%p
+ - docs_link = link_to _("documentation"), help_page_url('integration/oauth_provider', anchor: 'view-all-authorized-applications'), target: '_blank', rel: 'noopener noreferrer'
+ = s_('Notify|A new OAuth 2 application has been authorized. If you did not expect this, check the authorized OAuth 2 applications %{docs_link}.').html_safe % { docs_link: docs_link }
diff --git a/app/views/notify/application_authorized_email.text.erb b/app/views/notify/application_authorized_email.text.erb
new file mode 100644
index 00000000000..7bc550e0854
--- /dev/null
+++ b/app/views/notify/application_authorized_email.text.erb
@@ -0,0 +1,7 @@
+<p>
+ <%= _('Hi %{username}!') % { username: sanitize_name(@user.name) } %>
+</p>
+<p>
+ <% docs_link = link_to _("documentation"), help_page_url('integration/oauth_provider', anchor: 'view-all-authorized-applications'), target: '_blank', rel: 'noopener noreferrer' %>
+ <%= s_('Notify|A new OAuth 2 application has been authorized. If you did not expect this, check the authorized OAuth 2 applications %{docs_link}.').html_safe % { docs_link: docs_link } %>
+</p> \ No newline at end of file
diff --git a/app/views/notify/application_created_email.html.haml b/app/views/notify/application_created_email.html.haml
new file mode 100644
index 00000000000..1113cc13d0b
--- /dev/null
+++ b/app/views/notify/application_created_email.html.haml
@@ -0,0 +1,5 @@
+%p
+ = _('Hi %{username}!') % { username: sanitize_name(@user.name) }
+%p
+ - docs_link = link_to _("documentation"), help_page_url('integration/oauth_provider'), target: '_blank', rel: 'noopener noreferrer'
+ = s_('Notify|A new OAuth 2 application has been created. If you did not create this application, check the OAuth 2 applications %{docs_link}.').html_safe % { docs_link: docs_link }
diff --git a/app/views/notify/application_created_email.text.erb b/app/views/notify/application_created_email.text.erb
new file mode 100644
index 00000000000..8164f342f9a
--- /dev/null
+++ b/app/views/notify/application_created_email.text.erb
@@ -0,0 +1,7 @@
+<p>
+ <%= _('Hi %{username}!') % { username: sanitize_name(@user.name) } %>
+</p>
+<p>
+ <% docs_link = link_to _("documentation"), help_page_url('integration/oauth_provider'), target: '_blank', rel: 'noopener noreferrer' %>
+ <%= s_('Notify|A new OAuth 2 application has been created. If you did not create this application, check the OAuth 2 applications %{docs_link}.').html_safe % { docs_link: docs_link } %>
+</p> \ No newline at end of file