Link the user show page from the admin users index
Some checks failed
Some checks failed
The admin users index only exposed Edit / Delete actions per row, so the Accessible-applications panel on the user show page was unreachable without typing the URL by hand. Adds a View action and turns the email into a link to the show page — mirroring how the applications and groups indexes already work. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
<% @users.each do |user| %>
|
<% @users.each do |user| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 dark:text-gray-100 sm:pl-0">
|
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 dark:text-gray-100 sm:pl-0">
|
||||||
<%= user.email_address %>
|
<%= link_to user.email_address, admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %>
|
||||||
</td>
|
</td>
|
||||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-gray-400">
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-gray-400">
|
||||||
<% if user.status.present? %>
|
<% if user.status.present? %>
|
||||||
@@ -110,6 +110,7 @@
|
|||||||
data: { turbo_method: :post },
|
data: { turbo_method: :post },
|
||||||
class: "text-yellow-600 hover:text-yellow-900" %>
|
class: "text-yellow-600 hover:text-yellow-900" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<%= link_to "View", admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %>
|
||||||
<%= link_to "Edit", edit_admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %>
|
<%= link_to "Edit", edit_admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %>
|
||||||
<%= link_to "Delete", admin_user_path(user),
|
<%= link_to "Delete", admin_user_path(user),
|
||||||
data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete this user?" },
|
data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete this user?" },
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Clinch
|
module Clinch
|
||||||
VERSION = "0.14.2"
|
VERSION = "0.14.3"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user