Merge branch 'Expose-users-id-in-admin-users-show-page' into 'master'

Expose user's id in /admin/users/ show page.

See merge request gitlab-org/gitlab-ce!21297
This commit is contained in:
Phil Hughes 2018-08-28 08:03:08 +00:00
commit a1f1460ae5
3 changed files with 10 additions and 0 deletions

View file

@ -39,6 +39,10 @@
%strong= email.email
= 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
%li
%span.light ID:
%strong
= @user.id
%li.two-factor-status
%span.light Two-factor Authentication:

View file

@ -0,0 +1,5 @@
---
title: Expose user's id in /admin/users/ show page
merge_request:
author: Eva Kadlecova
type: changed

View file

@ -134,6 +134,7 @@ describe "Admin::Users" do
expect(page).to have_content(user.email)
expect(page).to have_content(user.name)
expect(page).to have_content(user.id)
expect(page).to have_link('Block user', href: block_admin_user_path(user))
expect(page).to have_button('Delete user')
expect(page).to have_button('Delete user and contributions')