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

This commit is contained in:
Eva Kadlecová 2018-08-19 21:13:48 +02:00
parent 120ce02e5e
commit 894e9c7f30
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')