From d3c2b43a7303a764bfa352ee99228d718d816133 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 30 Nov 2014 16:53:04 +0100 Subject: [PATCH] added statistics to about page --- app/views/static/about.html.haml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/views/static/about.html.haml b/app/views/static/about.html.haml index d98de9b4..3a237a0d 100644 --- a/app/views/static/about.html.haml +++ b/app/views/static/about.html.haml @@ -20,6 +20,21 @@ - @admins.each do |user| %li %a= link_to user.screen_name, show_user_profile_path(user.screen_name) + .panel.panel-default + .panel-body + There are lies, damned lies, and then there are... + %h3 Statistics + .row + .col-xs-6 + %h4.entry-text#asked-count= Question.count + %h6.entry-subtext Questions + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#answered-count= Answer.count + %h6.entry-subtext Answers + .row + .col-xs-6 + %h4.entry-text#follower-count= User.count + %h6.entry-subtext Users .col-sm-4 .panel.panel-default .panel-body