Expose user's id in /admin/users/ show page.
This commit is contained in:
parent
120ce02e5e
commit
894e9c7f30
|
@ -39,6 +39,10 @@
|
||||||
%strong= email.email
|
%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
|
= 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
|
%i.fa.fa-times
|
||||||
|
%li
|
||||||
|
%span.light ID:
|
||||||
|
%strong
|
||||||
|
= @user.id
|
||||||
|
|
||||||
%li.two-factor-status
|
%li.two-factor-status
|
||||||
%span.light Two-factor Authentication:
|
%span.light Two-factor Authentication:
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Expose user's id in /admin/users/ show page
|
||||||
|
merge_request:
|
||||||
|
author: Eva Kadlecova
|
||||||
|
type: changed
|
|
@ -134,6 +134,7 @@ describe "Admin::Users" do
|
||||||
|
|
||||||
expect(page).to have_content(user.email)
|
expect(page).to have_content(user.email)
|
||||||
expect(page).to have_content(user.name)
|
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_link('Block user', href: block_admin_user_path(user))
|
||||||
expect(page).to have_button('Delete user')
|
expect(page).to have_button('Delete user')
|
||||||
expect(page).to have_button('Delete user and contributions')
|
expect(page).to have_button('Delete user and contributions')
|
||||||
|
|
Loading…
Reference in New Issue