mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 00:54:08 +01:00
Updated to svn tags/tracks-1.6
This commit is contained in:
parent
103fcb8049
commit
02496f2d44
2274 changed files with 0 additions and 0 deletions
36
app/views/users/index.html.erb
Normal file
36
app/views/users/index.html.erb
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<h1>Manage users</h1>
|
||||
|
||||
<p>You have a total of <span id="user_count"><%= @total_users %></span> users</p>
|
||||
|
||||
<table class="users_table">
|
||||
<tr>
|
||||
<th>Login</th>
|
||||
<th>Full name</th>
|
||||
<th>Authorization type</th>
|
||||
<th>Open ID URL</th>
|
||||
<th>Total actions</th>
|
||||
<th>Total contexts</th>
|
||||
<th>Total projects</th>
|
||||
<th>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.last_name? ? 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? ? link_to_remote( image_tag("blank.png", :title =>"Destroy user", :class=>"delete_item"), {:url => user_path(user), :method => :delete, :confirm => "Warning: this will delete user \'#{user.login}\', all their actions, contexts, project and notes. Are you sure that you want to continue?" }, { :class => "icon" } ) : " " %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<p>
|
||||
<%= link_to "« Previous page", { :page => @user_pages.current.previous } if @user_pages.current.previous %>
|
||||
<%= link_to "Next page »", { :page => @user_pages.current.next } if @user_pages.current.next %>
|
||||
</p>
|
||||
|
||||
<p><%= link_to 'Signup new user', signup_path %></p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue