diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 20 |
1 files changed, 19 insertions, 1 deletions
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 @@ | |||
1 | Welcome to the the ubiquitous administration panel! | 1 | %p Welcome to the the ubiquitous administration panel! |
2 | %p Stats: | ||
3 | %ul | ||
4 | %li | ||
5 | %strong Blog posts: | ||
6 | = Blog.count | ||
7 | %li | ||
8 | %strong Approved comments: | ||
9 | = Comment.where(status: :published).count | ||
10 | %li | ||
11 | %strong Filtered comments: | ||
12 | = Global.get_filtered_comments | ||
13 | %li | ||
14 | %strong Quotes: | ||
15 | = Quote.count | ||
16 | %li | ||
17 | %strong Votes: | ||
18 | = Vote.count | ||
19 | (+#{Vote.where(upvote: true).count} / -#{Vote.where(upvote: false).count}) | ||