mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 03:30:13 +01:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
<h1><%= t('users.manage_users') %></h1>
|
|
|
|
<p><%= t('users.total_users_count', :count => "<span id=\"user_count\">#{@total_users}</span>").html_safe %></p>
|
|
|
|
<table class="users_table">
|
|
<tr>
|
|
<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>
|
|
<th> </th>
|
|
</tr>
|
|
<% for user in @users %>
|
|
<tr <%= "class=\"highlight\"" if user.is_admin? %> id="user-<%= user.id %>">
|
|
<td><%=h user.login %></td>
|
|
<td><%=h user.display_name %></td>
|
|
<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>
|
|
<td><%= !user.is_admin? ? remote_delete_user(user) : " ".html_safe %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<p>
|
|
<%= will_paginate @users %>
|
|
</p>
|
|
|
|
<p><%= link_to t('users.signup_new_user'), signup_path %></p>
|