diff options
author | Stan Hu <stanhu@gmail.com> | 2015-05-10 07:44:58 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-03 00:12:43 -0700 |
commit | a38dd9bd3a47f6bbadf00bfa069a46747b0df791 (patch) | |
tree | 6ae513d3fae413c19505cffc8a6d76ade7e7084d /app/views | |
parent | 76ae871908b83c9de9fb05f6cf491153209a79d4 (diff) | |
download | gitlab-ce-a38dd9bd3a47f6bbadf00bfa069a46747b0df791.tar.gz |
Add "Resend confirmation e-mail" link in profile settings
Fixes https://github.com/gitlabhq/gitlabhq/issues/9274
Diffstat (limited to 'app/views')
-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. |