Merge pull request #2304 from r888888888/admin-dashboard
Admin dashboard
This commit is contained in:
17
app/logical/admin_dashboard.rb
Normal file
17
app/logical/admin_dashboard.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class AdminDashboard
|
||||
def tag_aliases
|
||||
TagAlias.where(status: "pending").order("id desc")
|
||||
end
|
||||
|
||||
def tag_implications
|
||||
TagImplication.where(status: "pending").order("id desc")
|
||||
end
|
||||
|
||||
def update_requests
|
||||
BulkUpdateRequest.where(status: "pending").order("id desc")
|
||||
end
|
||||
|
||||
def forum_topics
|
||||
ForumTopic.where(category_id: 1).order("id desc").limit(20)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user