From ad323dcfe1934b39ec8e4468737ab6f685797775 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Fri, 16 Oct 2026 13:03:45 +0900 Subject: [PATCH] Remove the delete icon from the time entries list --- app/views/timelog/_list.html.erb | 5 ----- test/functional/timelog_controller_test.rb | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb index aa1c1c293..02df85b14 100644 --- a/app/views/timelog/_list.html.erb +++ b/app/views/timelog/_list.html.erb @@ -41,11 +41,6 @@ <%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(entry), :title => l(:button_edit), :class => 'icon-only icon-edit' %> - <%= link_to sprite_icon('del', l(:button_delete)), time_entry_path(entry), - :data => {:confirm => l(:text_are_you_sure)}, - :method => :delete, - :title => l(:button_delete), - :class => 'icon-only icon-del' %> <% end -%> <%= link_to_context_menu %> diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 8ceaf6533..df34241f4 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -1011,6 +1011,7 @@ class TimelogControllerTest < Redmine::ControllerTest assert_response :success assert_select 'tr.time-entry', 4 + assert_select 'tr.time-entry td.buttons a.icon-del', 0 # project and subproject projects = css_select('table.time-entries tbody td.project').map(&:text).uniq.sort -- 2.55.0