/post_{flags,appeals}: add uploader, approver, flag/appeal count columns.

Also include '»' links next to uploader/approver names for drilling down
the search by a given user.
This commit is contained in:
evazion
2017-03-03 20:10:28 -06:00
parent 3ae8cc5586
commit 652e251040
6 changed files with 75 additions and 23 deletions

View File

@@ -37,7 +37,7 @@ class PostAppeal < ActiveRecord::Base
end
def search(params)
q = where("true")
q = order("post_appeals.id desc")
return q if params.blank?
if params[:reason_matches].present?

View File

@@ -45,7 +45,7 @@ class PostFlag < ActiveRecord::Base
end
def search(params)
q = where("true")
q = order("post_flags.id desc")
return q if params.blank?
if params[:reason_matches].present?