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>2020-08-20 18:10:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:10:18 +0300
commit520f3178665de5e7d313d332989cd445da83817b (patch)
tree9db17960cfdd6f6be1deaee57d32e7d7956f2d84 /app/helpers/emails_helper.rb
parent3b963d69199b2e4dd0a0c0b64efcf715242a5d8b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/emails_helper.rb')
-rw-r--r--app/helpers/emails_helper.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/helpers/emails_helper.rb b/app/helpers/emails_helper.rb
index ba2330dfc9a..9a44b66002a 100644
--- a/app/helpers/emails_helper.rb
+++ b/app/helpers/emails_helper.rb
@@ -177,6 +177,27 @@ module EmailsHelper
strip_tags(render_message(:footer_message, style: ''))
end
+ def say_hi(user)
+ _('Hi %{username}!') % { username: sanitize_name(user.name) }
+ end
+
+ def two_factor_authentication_disabled_text
+ _('Two-factor authentication has been disabled for your GitLab account.')
+ end
+
+ def re_enable_two_factor_authentication_text(format: nil)
+ url = profile_two_factor_auth_url
+
+ case format
+ when :html
+ settings_link_to = link_to(_('two-factor authentication settings'), url, target: :_blank, rel: 'noopener noreferrer').html_safe
+ _("If you want to re-enable two-factor authentication, visit the %{settings_link_to} page.").html_safe % { settings_link_to: settings_link_to }
+ else
+ _('If you want to re-enable two-factor authentication, visit %{two_factor_link}') %
+ { two_factor_link: url }
+ end
+ end
+
private
def show_footer?