app/views/admin/users/index.html.haml
- model_class = User
.page-header
%h1=t '.title', :default => model_class.model_name.human.pluralize.titleize
%table.table.table-striped
%thead
%tr
%th= model_class.human_attribute_name(:id)
%th= model_class.human_attribute_name(:role)
%th= model_class.human_attribute_name(:email)
%th= model_class.human_attribute_name(:name)
%th=t '.actions', :default => t("helpers.actions")
%tbody
- @users.each do |user|
%tr
%td= link_to user.id, admin_user_path(user)
%td= user.role.name
%td= user.email
%td= user.profile.nil? ? " " : user.name
%td
= link_to t('.edit', :default => t("helpers.links.edit")), edit_admin_user_path(user), :class => 'btn btn-mini'