<%= t 'authentication.name' %> | <%= t 'activerecord.attributes.user.email' %> | Admin? |
---|---|---|
<%= user.name %> | <%= user.email %> | <% unless user.admin? %> X <%= link_to t('authentication.enable_admin'), make_admin_user_path(user), class: 'btn btn-mini', method: :post %> <% else %> ✓ <%= link_to t('authentication.disable_admin'), remove_admin_user_path(user), class: 'btn btn-mini', method: :post %> <% end -%> |