From 5462a1e56abf70486dc59593dde6ecb95a072026 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 20 Mar 2024 11:00:31 -0400 Subject: Added some admin dashboard stats --- app/views/admin/dashboard/index.html.haml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'app/views/admin') diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index eaac627..254107c 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -1 +1,19 @@ -Welcome to the the ubiquitous administration panel! +%p Welcome to the the ubiquitous administration panel! +%p Stats: +%ul + %li + %strong Blog posts: + = Blog.count + %li + %strong Approved comments: + = Comment.where(status: :published).count + %li + %strong Filtered comments: + = Global.get_filtered_comments + %li + %strong Quotes: + = Quote.count + %li + %strong Votes: + = Vote.count + (+#{Vote.where(upvote: true).count} / -#{Vote.where(upvote: false).count}) -- cgit 1.4.1