diff options
author | Nick Thomas <nick@gitlab.com> | 2017-04-28 18:33:23 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-06-22 17:42:44 +0300 |
commit | 963052bf3c91100de010feb162cf5aa31ae33128 (patch) | |
tree | d3d9afa458e5feddbb59d01c60aa7ddedb8d93c2 /app/helpers/users_helper.rb | |
parent | 5695e52bfe3dcbc4d65413a351a33a8ccbd3ad5d (diff) |
Convert app/views/profiles/show.html.haml to bootstrap_form
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r-- | app/helpers/users_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 9c623c9ba7c..b5f54d3e154 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -4,4 +4,14 @@ module UsersHelper title: user.email, class: 'has-tooltip commit-committer-link') end + + def user_email_help_text(user) + return 'We also use email for avatar detection if no avatar is uploaded.' unless user.unconfirmed_email.present? + + confirmation_link = link_to 'Resend confirmation e-mail', user_confirmation_path(user: { email: @user.unconfirmed_email }), method: :post + + h('Please click the link in the confirmation email before continuing. It was sent to ') + + content_tag(:strong) { user.unconfirmed_email } + h('.') + + content_tag(:p) { confirmation_link } + end end |