Sha256: e41857976b032f8168ea82a5182630bffd0737d2dc544e7f0b943d5ce7a6aad0

Contents?: true

Size: 738 Bytes

Versions: 5

Compression:

Stored size: 738 Bytes

Contents

%h2 Users
%div.clearfix
  = will_paginate(@users)
%table.table.table-bordered.table-striped
  %thead
    %tr
      %th Name
      %th Email
      %th Role
      %th Actions
  %tbody
    - @users.each do |u|
      %tr
        %td=u.name
        %td=u.email
        %td=u.is_admin? ? 'Admin' : 'Default'
        %td 
          =link_to 'Edit', ['edit','admin',u], :class =>'btn'
          =link_to 'Unlock', ['unlock','admin',u], :class =>'btn' if u != current_user and u.access_locked?
          =link_to 'Delete', ['confirm_delete','admin',u], :class =>'btn btn-danger' unless u == current_user

%div.clearfix
  = will_paginate(@users)

%div{:class =>'well' }
  =link_to 'New User', ['new','admin','user'], :class => 'btn large primary'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
protected-1.0.4 app/views/protected/admin/users/index.html.haml
protected-1.0.3 app/views/protected/admin/users/index.html.haml
protected-1.0.2 app/views/protected/admin/users/index.html.haml
protected-1.0.1 app/views/protected/admin/users/index.html.haml
protected-1.0.0 app/views/protected/admin/users/index.html.haml