Sha256: bfdffdf2812ca95ea9a0bc214418db9d6546f9f8e4c895a8e64ec8e54f5cec50
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
Contents
<h1>Listing Users</h1> <ul class="choices"> <li><%= link_to 'Create New User', new_admin_user_path %></li> </ul> <%= will_paginate @users %> <table> <thead> <tr> <%= sortable_table_header :name => "Name", :sort => "title" %> <%= sortable_table_header :name => "Email", :sort => "email" %> <%= sortable_table_header :name => "Role", :sort => "role" %> <th colspan="2">Actions</th> </tr> </thead> <tbody> <% for user in @users -%> <tr> <td><%=h user.name %></td> <td><%=h user.email %></td> <td><%=h user.role %></td> <td><%= link_to 'Edit', [:admin, user], :class => 'edit' %></td> <td><%= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td> </tr> <% end %> </tbody> <tfoot> <tr> <%= sortable_table_header :name => "Name", :sort => "title" %> <%= sortable_table_header :name => "Email", :sort => "email" %> <%= sortable_table_header :name => "Role", :sort => "role" %> <th colspan="2">Actions</th> </tr> </tfoot> </table> <%= will_paginate @users %>
Version data entries
8 entries across 8 versions & 1 rubygems