<%= t('activerecord.models.users') %>

<%= render 'details/tab_admin_menu' %> <% @users.each do |user| %> <% end %>
<%= t 'authentication.name' %> <%= t 'activerecord.attributes.user.email' %> <%= t('question_mark_inverted') %><%= t('activerecord.attributes.user.admin') %><%= t('question_mark') %> <%= t('actions') %>
<%= link_to user.name, detail_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_detail_path(user), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), Detail.find(user.id), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
<%= render 'shared/admin_sidebar' %>