<%= link_to user.name, member_path(user) %> |
<%= user.email %> |
<% unless user.admin? %>
X <%= link_to t('authentication.enable_admin'), make_admin_user_path(user), class: 'btn btn-xs btn-default', method: :post %>
<% else %>
✓ <%= link_to t('authentication.disable_admin'), remove_admin_user_path(user), class: 'btn btn-xs btn-primary', method: :post %>
<% end -%>
|
<%= link_to t('edit'), edit_member_path(user), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), Member.find(user.id), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %> |
<% end %>