Sha256: 196443c9f3819376d8ba7c3b8fcfe2aca3066dd4793f788f0ba628a694036391
Contents?: true
Size: 1.28 KB
Versions: 8
Compression:
Stored size: 1.28 KB
Contents
<h1>Listing Users</h1> <ul class="choices"> <li><%= link_to 'Create New User', new_admin_user_path, :class => 'button' %></li> </ul> <%= will_paginate(@users, :previous_label => 'Previous', :next_label => 'Next') %> <div id="content-table"> <table class="content"> <thead> <tr> <%= sortable_table_header :name => "Name", :sort => "title" %> <%= sortable_table_header :name => "Email", :sort => "email" %> <%= sortable_table_header :name => "Role", :sort => "role" %> <th>Delete</th> </tr> </thead> <tbody> <% for user in @users -%> <tr> <td><%= link_to user.name, [:admin, user], :class => 'edit', :title => 'Edit this user' %></td> <td><%= mail_to user.email %></td> <td><%= user.group_list %></td> <td><%= link_to 'Delete', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this user' %></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>Delete</th> </tr> </tfoot> </table> <%= will_paginate(@users, :previous_label => 'Previous', :next_label => 'Next') %>
Version data entries
8 entries across 8 versions & 1 rubygems