17 lines
882 B
Plaintext
17 lines
882 B
Plaintext
<tr>
|
|
<td><%= user.email %></td>
|
|
<td><%= user.account_auths.map(&:role).join(',') %></td>
|
|
<td class="text-right">
|
|
<% if user != Current.user %>
|
|
<div class="btn-group">
|
|
<%= button_tag "Manage", class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<%= link_to fa_icon("user-secret", text: "Masquerade"), [:admin, user, :masquerade], method: :post, class: "dropdown-item" %>
|
|
<%= link_to fa_icon("pencil", text: "Edit"), [:edit, :admin, user], class: "dropdown-item" %>
|
|
<%= link_to fa_icon("trash", text: "Delete"), [:admin, user], class: "dropdown-item", remote: true, method: :delete, data: { confirm: "Are you sure?" } %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|