These were originally used to find uploaders with high-scoring uploads for promotion purposes. The weekly reports generated by Reportbooru are better suited for this. Also clean up some unused and redundant code.
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
<div id="c-users">
|
|
<div id="a-index">
|
|
<h1>Users</h1>
|
|
|
|
<table width="100%" class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Name</th>
|
|
<th>Posts</th>
|
|
<th>Deleted</th>
|
|
<th>Notes</th>
|
|
<th>Edits</th>
|
|
<th>Level</th>
|
|
<th>Joined</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @users.each do |user| %>
|
|
<tr>
|
|
<td>
|
|
<% if CurrentUser.is_admin? %>
|
|
<%= link_to "Edit", edit_admin_user_path(user) %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= link_to_user user %>
|
|
<% if user.inviter %>
|
|
← <%= link_to_user user.inviter %>
|
|
<% end %>
|
|
</td>
|
|
<td><%= link_to user.posts.count, posts_path(:tags => "user:#{user.name}") %></td>
|
|
<td><%= user.posts.deleted.count %></td>
|
|
<td><%= link_to user.note_versions.count, note_versions_path(:search => {:updater_id => user.id}) %></td>
|
|
<td><%= link_to user.post_update_count, post_versions_path(:search => {:updater_id => user.id}) %></td>
|
|
<td><%= user.level_string %></td>
|
|
<td><%= compact_time user.created_at %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@users) %>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|