Sha256: 517499d7fca9580691d13b127031a8858202f87c656b16fea04080bceaa7895e
Contents?: true
Size: 924 Bytes
Versions: 8
Compression:
Stored size: 924 Bytes
Contents
<% @page_name = 'Roles' %> <%= content_for :data_controls do %> <%= link_to 'New Role', new_admin_role_path, :class => 'btn btn-primary' %> <% end %> <% content_for :detail do %> <table class="table table-striped"> <thead> <tr> <th>Name</th> <th># Users</th> <th>Permissions</th> <th></th> </tr> </thead> <tbody> <% @roles.each do |role| %> <tr> <td><%= role.name %></td> <td><%= role.users.count %></td> <td><%= role.permissions.collect(&:name).join(', ') %></td> <td align="right"> <%= link_to 'Edit', edit_admin_role_path(role), :class => 'btn btn-mini' %> <%= link_to 'Delete', admin_role_path(role), :method => :delete, :data => {:confirm => 'Are you sure?'}, :class => 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems