diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-06-03 11:47:45 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-06-03 11:47:45 +0000 |
commit | 69630394cfb37e5a24c217193af65e88ec288029 (patch) | |
tree | b5fcab67e90f0a84793cf10b96b32b76ed11a671 /app | |
parent | 41d4aaa4be6ef39a97e07dedbeda839b5667f221 (diff) | |
parent | a38dd9bd3a47f6bbadf00bfa069a46747b0df791 (diff) | |
download | gitlab-ce-69630394cfb37e5a24c217193af65e88ec288029.tar.gz |
Merge branch 'add-resend-confirmation-email-in-profile' into 'master'
Add "Resend confirmation e-mail" link in profile settings
Adds a convenience link to resend the confirmation e-mail if necessary. Before, user had to logout or open an Incognito Window to do this.
Screenshot:

Fixes https://github.com/gitlabhq/gitlabhq/issues/9274
See merge request !634
Diffstat (limited to 'app')
-rw-r--r-- | app/views/profiles/show.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index 62fac46df27..6534afb0e89 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -37,8 +37,11 @@ = f.text_field :email, class: "form-control", required: true - if @user.unconfirmed_email.present? %span.help-block - Please click the link in the confirmation email before continuing, it was sent to - %strong #{@user.unconfirmed_email} + Please click the link in the confirmation email before continuing. It was sent to + = succeed "." do + %strong #{@user.unconfirmed_email} + %p + = link_to "Resend confirmation e-mail", user_confirmation_path(user: { email: @user.unconfirmed_email }), method: :post - else %span.help-block We also use email for avatar detection if no avatar is uploaded. |