<%= flash_messages %>
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
<%= t(:role) %> |
<%= t(:name) %> |
<%= t(:email) %> |
<%= t(:admin) %> |
<%= t(:action) %> |
<% @users.each do |user| %>
<%= user.role.title rescue nil %> |
<%= user.name ? user.name : 'bob' %> |
<%= user.email %> |
<%= user.admin ? t(:yes_) : t(:no_) %> |
<%= link_to t(:show), admin_user_path(user), :class => 'show' %>
<%= link_to t(:edit), edit_admin_user_path(user), :class => 'edit' %>
<%= link_to t(:delete), admin_user_path(user), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
|
|
<% end %>
<%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>