improve janitor/promotion reports, fix bug with forum post counts
This commit is contained in:
@@ -2,17 +2,18 @@
|
||||
<div id="a-user-promotions">
|
||||
<h1>Janitor Trial Report</h1>
|
||||
|
||||
<table width="100%" class="striped" id="sortable" style="margin-bottom: 1em;">
|
||||
<p>All numbers shown are for the past 3 months. Binomial proportion confidence interval for how likely a janitor's approvals will achieve a score of at at least n with 95% confidence.</p>
|
||||
|
||||
<table width="100%" class="striped" id="sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sort="string">User</th>
|
||||
<th data-sort="int">Level</th>
|
||||
<th data-sort="int">Approvals</th>
|
||||
<th data-sort="int">Deleted</th>
|
||||
<th data-sort="int" title="25% of approvals received this score or less">Quartile Score</th>
|
||||
<th data-sort="int" title="50% of approvals received this score or less">Median Score</th>
|
||||
<th>Explicit %</th>
|
||||
<th>Questionable %</th>
|
||||
<th>Safe %</th>
|
||||
<th data-sort="int" title="Likelihood an approval will get a score of 3 or higher">score:3+</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -21,13 +22,12 @@
|
||||
<% @report.janitors.each do |janitor| %>
|
||||
<tr>
|
||||
<td><%= link_to_user janitor.user %></td>
|
||||
<td data-sort-value="<%= user.level %>"><%= janitor.user.level_string %></td>
|
||||
<td><%= link_to janitor.approval_count, posts_path(:tags => "approver:#{janitor.user.name}") %></td>
|
||||
<td><%= link_to janitor.deleted_count, posts_path(:tags => "approver:#{janitor.user.name} status:deleted") %></td>
|
||||
<td><%= janitor.percentile_25_score %></td>
|
||||
<td><%= janitor.percentile_50_score %></td>
|
||||
<td><%= number_to_percentage janitor.rating_e_percentage, :precision => 0 %></td>
|
||||
<td><%= number_to_percentage janitor.rating_q_percentage, :precision => 0 %></td>
|
||||
<td><%= number_to_percentage janitor.rating_s_percentage, :precision => 0 %></td>
|
||||
<td><%= number_to_percentage janitor.confidence_interval, :precision => 0 %></td>
|
||||
<td>
|
||||
<% if CurrentUser.user.is_moderator? %>
|
||||
<%= link_to "Promote", promote_janitor_trial_path(janitor.trial), :method => :put, :remote => true %>
|
||||
@@ -39,8 +39,6 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>All numbers shown are for the past 3 months.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user