From 0e9ec710133319103ec3a63c46d16ff8ac6a869d Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Sun, 7 Jun 2026 18:26:55 +1000 Subject: [PATCH] Link the user show page from the admin users index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- app/views/admin/users/index.html.erb | 3 ++- config/initializers/version.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index 8d50a5a..ed4058f 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -61,7 +61,7 @@ <% @users.each do |user| %> - <%= user.email_address %> + <%= link_to user.email_address, admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %> <% if user.status.present? %> @@ -110,6 +110,7 @@ data: { turbo_method: :post }, class: "text-yellow-600 hover:text-yellow-900" %> <% 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 "Delete", admin_user_path(user), data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete this user?" }, diff --git a/config/initializers/version.rb b/config/initializers/version.rb index 8784d6a..375a119 100644 --- a/config/initializers/version.rb +++ b/config/initializers/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Clinch - VERSION = "0.14.2" + VERSION = "0.14.3" end