Commit 894e9c7f authored by Eva Kadlecová's avatar Eva Kadlecová

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

parent 120ce02e
...@@ -39,6 +39,10 @@ ...@@ -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:
......
---
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 ...@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment