Merge pull request #2304 from r888888888/admin-dashboard

Admin dashboard
This commit is contained in:
Albert Yi
2014-11-07 14:12:55 -08:00
16 changed files with 224 additions and 157 deletions

View 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