Files
danbooru/app/views/users/index.html.erb
evazion a1b48f5e3f views: migrate search forms to use simple form.
Migrate various forms to be built using simple form instead of raw html.
Also adds autocomplete="off" to these forms (#4162).
2019-09-10 14:33:18 -05:00

57 lines
1.9 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>
<% if CurrentUser.is_moderator? %>
<th><abbr title="3+ Score Binomial Confidence Interval">5+ SBCI</abbr></th>
<th><abbr title="6+ Score Binomial Confidence Interval">10+ SBCI</abbr></th>
<% end %>
<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 %>
&larr; <%= 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>
<% if CurrentUser.is_moderator? %>
<td><%= number_to_percentage Reports::UserPromotions.confidence_interval_for(user, 3), :precision => 0 %></td>
<td><%= number_to_percentage Reports::UserPromotions.confidence_interval_for(user, 6), :precision => 0 %></td>
<% end %>
<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" %>