include upload limit in user promotion report
This commit is contained in:
@@ -55,7 +55,7 @@ module Reports
|
||||
end
|
||||
|
||||
def users
|
||||
::User.where("users.level < ? and users.post_upload_count >= 250", ::User::Levels::CONTRIBUTOR).order("created_at desc").limit(50).map {|x| Reports::UserPromotions::User.new(x)}
|
||||
::User.where("users.level < ? and users.post_upload_count >= 250", ::User::Levels::CONTRIBUTOR).order("created_at desc").map {|x| Reports::UserPromotions::User.new(x)}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<th data-sort="int" title="25% of uploads received this score or less">quartile score</th>
|
||||
<th data-sort="int" title="50% of uploads received this score or less">median score</th>
|
||||
<th data-sort="int">deletion</th>
|
||||
<th data-sort="int">limit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -29,6 +30,7 @@
|
||||
<td><%= user.quartile_score %></td>
|
||||
<td><%= user.median_score %></td>
|
||||
<td><%= link_to number_to_percentage(user.deletion_confidence_interval, :precision => 0), posts_path(:tags => "uploader:#{user.name} status:deleted", :limit => 200) %></td>
|
||||
<td><%= user.upload_limit %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user