%h3 
  Users
  = link_to 'New User', new_admin_user_path, :class => "btn small right"
%br
%table.zebra-striped.table-bordered
  %thead
    %th Admin
    %th Name
    %th Email
    %th Projects
    %th Blocked
    %th
    %th

  - @admin_users.each do |user|
    %tr
      %td= check_box_tag "admin",   1, user.admin, :disabled => :disabled
      %td= link_to user.name, [:admin, user]
      %td= user.email
      %td= user.users_projects.count
      %td= check_box_tag "blocked", 1, user.blocked, :disabled => :disabled
      %td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}", :class => "btn small"
      %td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"

= paginate @admin_users, :theme => "admin"