diff options
author | DeAndre Harris <dharris@gitlab.com> | 2018-08-06 22:37:14 +0000 |
---|---|---|
committer | DeAndre Harris <dharris@gitlab.com> | 2018-08-06 22:37:14 +0000 |
commit | 0e5818a5cb3c3d44fc95f09aaceaca21ba446964 (patch) | |
tree | 659f6f84f3d908710a69944cc392f5675bef14d7 | |
parent | dd627072b3f94df0483004425778a99ca369a09f (diff) | |
download | gitlab-ce-49814-display-in-admin-area-if-secondary-email-is-verified-or-not.tar.gz |
Update show.html.haml49814-display-in-admin-area-if-secondary-email-is-verified-or-not
-rw-r--r-- | app/views/admin/users/show.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index f730fd05176..ed5b2d8e3a9 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -33,10 +33,11 @@ %span.light Email: %strong = mail_to @user.email + = render partial: 'shared/email_with_badge', locals: { email: @primary_email, verified: current_user.confirmed? } - @user.emails.each do |email| %li %span.light Secondary email: - %strong= email.email + %strong= render partial: 'shared/email_with_badge', locals: { email: email.email, verified: email.confirmed? } = link_to remove_email_admin_user_path(@user, email), data: { confirm: "Are you sure you want to remove #{email.email}?" }, method: :delete, class: "btn-sm btn btn-remove float-right", title: 'Remove secondary email', id: "remove_email_#{email.id}" do %i.fa.fa-times |