<%= link_to t('admin.new_user'), new_admin_user_path %>
- Roles Name Email Admin Action <% @users.each do |user| %>
- <% active_role = UserRoleModel.get_role_model_from_key(user.active_role) %> <%= active_role.i18n_variable[I18n.locale] 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('admin.new_user'), new_admin_user_path %>