root/app/views/admin/users/index.rhtml @ d86eb8c1
fcaa7349 | Marc Dequènes (Duck) | <h2><%= _("List of users") %></h2>
|
|
<p>
|
|||
<table>
|
|||
<tr>
|
|||
<th><%= sortable_header :login, :label => _("Login"), :default => true %></th>
|
|||
<th><%= sortable_header :real_name, :label => _("Real Name") %></th>
|
|||
<th><%= sortable_header :email, :label => _("eMail") %></th>
|
|||
<th><%= _("Actions") %></th>
|
|||
</tr>
|
|||
<%
|
|||
# work around 'sortable-list' plugin not enforcing default sort
|
|||
params[:sort] ||= :login
|
|||
%>
|
|||
<% @users = resource_model.paginate(:all, :order => params[:sort], :page => params[:page]) %>
|
|||
<% @users.each do |user| %>
|
|||
<tr>
|
|||
<td><%= link_to_resource user, user.login %></td>
|
|||
<td><%= user.real_name %></td>
|
|||
<td><%= user.email %></td>
|
|||
<td class="actions"><%= display_standard_item_actions(user, (user == @current_user) ? [:modify] : nil) %></td>
|
|||
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
<%= will_paginate @users %>
|
|||
<%= display_new_action %>
|
|||
</p>
|