From 0dd307384146600af18a6d9acc6d47fe22f356c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Oct 2026 22:56:06 -0400 Subject: [PATCH] Customer page: Edit link in the contextual area instead of a button Moves "Edit customer" from a button under the actions list to Redmine's standard top-right contextual area (pencil icon, "e" access key), shown only to users with Edit customers. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM --- app/views/customers/_actions.html.erb | 4 ---- app/views/customers/show.html.erb | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/views/customers/_actions.html.erb b/app/views/customers/_actions.html.erb index 8da3454..e690341 100644 --- a/app/views/customers/_actions.html.erb +++ b/app/views/customers/_actions.html.erb @@ -14,10 +14,6 @@ <%= call_hook :customer_actions_bottom, { customer: @customer } %> -<% if User.current.allowed_to?(:edit_customers, nil, global: true) %> - <%= button_to t(:label_edit_customer), edit_customer_path(@customer), method: :get%> -<% end %> -