blob: 9c6466a2d6d666fd94c0c885882fae0cd3238ffb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<% users.each do |user| %>
<tr>
<td class="user_login"><%= user.login %></td>
<td><%= link_to "show", user_path(user) %></td>
<% if current_user.admin? || current_user == user %>
<td>
<%= link_to "edit", edit_user_path(user) %>
</td>
<td>
<%= button_to user_path(user), method: :delete,
form: { data: { confirm: t(".confirm_destroy", :login => user.login) }, class: 'button_to destructive' } do %>
<%= icon("trash", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.destroy") %>
<% end %>
</td>
<% end %>
</tr>
<% end %>
|