draft.patch

Mizuki ISHIKAWA, 2021-03-18 06:47

Download (2.59 KB)

View differences:

app/helpers/watchers_helper.rb
62 62
               :object_id => object.id,
63 63
               :user_id => user}
64 64
        s << ' '
65
        s << link_to(l(:button_delete), url,
65
        s << link_to(l(:button_remove), url,
66 66
                     :remote => true, :method => 'delete',
67
                     :class => "delete icon-only icon-del",
68
                     :title => l(:button_delete))
67
                     :class => "delete icon-only icon-remove",
68
                     :title => l(:button_remove))
69 69
      end
70 70
      content << content_tag('li', s, :class => "user-#{user.id}")
71 71
    end
app/views/groups/_users.html.erb
11 11
      <tr id="user-<%= user.id %>">
12 12
        <td class="name"><%= link_to_user user %></td>
13 13
        <td class="buttons">
14
          <%= delete_link group_user_path(@group, :user_id => user), :remote => true %>
14
          <%= link_to l(:button_remove), group_user_path(@group, user_id: user), {remote: true, method: :delete, data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-remove'} %>
15 15
        </td>
16 16
      </tr>
17 17
    <% end %>
config/locales/en.yml
1116 1116
  button_collapse_all: Collapse all
1117 1117
  button_expand_all: Expand all
1118 1118
  button_delete: Delete
1119
  button_remove: Remove
1119 1120
  button_create: Create
1120 1121
  button_create_and_continue: Create and add another
1121 1122
  button_test: Test
public/stylesheets/application.css
1591 1591
.icon-sorted-desc { background-image: url(../images/arrow_up.png); }
1592 1592
.icon-toggle-plus { background-image: url(../images/bullet_toggle_plus.png) }
1593 1593
.icon-toggle-minus { background-image: url(../images/bullet_toggle_minus.png) }
1594
.icon-clear-query { background-image: url(../images/close_hl.png); }
1594
.icon-clear-query, .icon-remove { background-image: url(../images/close_hl.png); }
1595 1595
.icon-import { background-image: url(../images/database_go.png); }
1596 1596

  
1597 1597
.icon-file { background-image: url(../images/files/default.png); }