2010-10-31 21:27:13 +08:00
|
|
|
<h1><%= t('users.manage_users') %></h1>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2012-08-19 08:53:19 +02:00
|
|
|
<p><%= t('users.total_users_count', :count => "<span id=\"user_count\">#{@total_users}</span>").html_safe %></p>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2014-08-14 21:05:05 -05:00
|
|
|
<table class="users_table">
|
|
|
|
|
<tr>
|
2010-10-31 21:27:13 +08:00
|
|
|
<th><%= User.human_attribute_name('login') %></th>
|
|
|
|
|
<th><%= User.human_attribute_name('display_name') %></th>
|
|
|
|
|
<th><%= User.human_attribute_name('auth_type') %></th>
|
|
|
|
|
<th><%= User.human_attribute_name('open_id_url') %></th>
|
|
|
|
|
<th><%= t('users.total_actions') %></th>
|
|
|
|
|
<th><%= t('users.total_contexts') %></th>
|
|
|
|
|
<th><%= t('users.total_projects') %></th>
|
|
|
|
|
<th><%= t('users.total_notes') %></th>
|
2009-06-30 12:08:34 +02:00
|
|
|
<th> </th>
|
2014-08-14 21:05:05 -05:00
|
|
|
</tr>
|
2007-03-30 04:36:52 +00:00
|
|
|
<% for user in @users %>
|
2009-06-30 12:08:34 +02:00
|
|
|
<tr <%= "class=\"highlight\"" if user.is_admin? %> id="user-<%= user.id %>">
|
|
|
|
|
<td><%=h user.login %></td>
|
2010-10-31 21:27:13 +08:00
|
|
|
<td><%=h user.display_name %></td>
|
2009-06-30 12:08:34 +02:00
|
|
|
<td><%= h user.auth_type %></td>
|
|
|
|
|
<td><%= h user.open_id_url || '-' %></td>
|
|
|
|
|
<td><%= h user.todos.size %></td>
|
|
|
|
|
<td><%= h user.contexts.size %></td>
|
|
|
|
|
<td><%= h user.projects.size %></td>
|
|
|
|
|
<td><%= h user.notes.size %></td>
|
2012-08-19 08:53:19 +02:00
|
|
|
<td><%= !user.is_admin? ? remote_delete_user(user) : " ".html_safe %></td>
|
2009-06-30 12:08:34 +02:00
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</table>
|
|
|
|
|
<p>
|
|
|
|
|
<%= will_paginate @users %>
|
|
|
|
|
</p>
|
|
|
|
|
|
2012-08-19 08:53:19 +02:00
|
|
|
<p><%= link_to t('users.signup_new_user'), signup_path %></p>
|