Sha256: d9a51e6fb7020aef0dff6042264eda63645c3b19418e7286e23a7f9243e57146

Contents?: true

Size: 457 Bytes

Versions: 21

Compression:

Stored size: 457 Bytes

Contents

%h1 Users index
.buttons
  = link_to("New user", new_user_path) if admin_can?(:create, User)

%table
  %th
    %td View
    %td Edit
    %td Delete

  - users.each do |user|
    %tr
      %td
        = link_to(user.title, user_path(user)) if admin_can?(:read, user)
      %td
        = link_to("Edit", edit_user_path(user)) if admin_can?(:edit, user)
      %td
        = link_to("Delete", user_path(user), :method => 'delete') if admin_can?(:delete, user)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
cantango-0.9.4.7 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4.6 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4.5 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4.3 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4.2 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4.1 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.4 spec/dummy/app/views/users/admin.html.haml
cantango-0.9.3.2 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9.5 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9.4 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9.3 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9.2 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9.1 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.9 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.8.1 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.8 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.7 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.6.2 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.6.1 spec/dummy/app/views/users/admin.html.haml
cantango-0.8.6 spec/dummy/app/views/users/admin.html.haml