Project

General

Profile

Feature #44627 » 0001-Remove-the-delete-icon-from-the-time-entries-list.patch

Go MAEDA, 2026-10-16 10:46

View differences:

app/views/timelog/_list.html.erb
41 41
        <%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(entry),
42 42
                    :title => l(:button_edit),
43 43
                    :class => 'icon-only icon-edit' %>
44
        <%= link_to sprite_icon('del', l(:button_delete)), time_entry_path(entry),
45
                    :data => {:confirm => l(:text_are_you_sure)},
46
                    :method => :delete,
47
                    :title => l(:button_delete),
48
                    :class => 'icon-only icon-del' %>
49 44
    <% end -%>
50 45
        <%= link_to_context_menu %>
51 46
    </td>
test/functional/timelog_controller_test.rb
1011 1011
    assert_response :success
1012 1012
    assert_select 'tr.time-entry', 4
1013
    assert_select 'tr.time-entry td.buttons a.icon-del', 0
1013 1014
    # project and subproject
1014 1015
    projects = css_select('table.time-entries tbody td.project').map(&:text).uniq.sort
(2-2/2)