diff --git a/app/views/api_users/edit.html.erb b/app/views/api_users/edit.html.erb index dcfcf1e3e..a8e7e45ae 100644 --- a/app/views/api_users/edit.html.erb +++ b/app/views/api_users/edit.html.erb @@ -4,6 +4,7 @@
User <%= @api_user.status %> • + Created <%= time_ago_in_words(@api_user.created_at) %> ago • <%= link_to "Account access log", event_logs_user_path(@api_user) %> • <%= link_to "#{@api_user.suspended? ? "Uns" : "S"}uspend user", edit_suspension_path(@api_user) %>
diff --git a/app/views/api_users/index.html.erb b/app/views/api_users/index.html.erb index 33d66e1a3..8f9ec32f5 100644 --- a/app/views/api_users/index.html.erb +++ b/app/views/api_users/index.html.erb @@ -22,16 +22,6 @@ { text: "Apps", }, - { - text: "Role", - }, - { - text: "Sign‑ins", - format: "numeric" - }, - { - text: "Created", - }, { text: "Suspended?", }, @@ -47,16 +37,6 @@ { text: permissions_by_application(user), }, - { - text: user.role.humanize, - }, - { - text: user.sign_in_count, - format: "numeric" - }, - { - text: "#{time_ago_in_words(user.created_at)} ago", - }, { text: user.suspended? ? "Yes" : "No", }, diff --git a/test/integration/manage_api_users_test.rb b/test/integration/manage_api_users_test.rb index 46bf4cc9c..bcaa65890 100644 --- a/test/integration/manage_api_users_test.rb +++ b/test/integration/manage_api_users_test.rb @@ -18,7 +18,6 @@ class ManageApiUsersTest < ActionDispatch::IntegrationTest should "be able to view a list of API users alongwith their authorised applications" do assert page.has_selector?("td", text: @api_user.name) assert page.has_selector?("td", text: @api_user.email) - assert page.has_selector?("td", text: "Normal") assert page.has_selector?("abbr", text: @application.name) assert page.has_selector?("td:last-child", text: "No") # suspended?