about summary refs log tree commit diff stats
path: root/app/views/admin/dashboard/index.html.haml
blob: 254107cc25ce4e09ecd5761f246223720e19f14f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%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})