added some counters to user profiles

This commit is contained in:
nilsding 2014-12-07 15:10:05 +01:00
parent 8ab5458b1b
commit 9f4d9214bd
2 changed files with 14 additions and 0 deletions

View File

@ -31,6 +31,13 @@
.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#asked-count= Comment.count
%h6.entry-subtext Comments
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= Smile.count
%h6.entry-subtext Smiles
.row
.col-xs-6
%h4.entry-text#follower-count= User.count

View File

@ -39,6 +39,13 @@
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= @user.answered_count
%h6.entry-subtext Answers
.row
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#asked-count= @user.commented_count
%h6.entry-subtext Comments
.col-md-6.col-sm-6.col-xs-6
%h4.entry-text#answered-count= @user.smiled_count
%h6.entry-subtext Smiles
= render 'user/actions'
.hidden-xs= render 'shared/links'
.col-md-9.col-xs-12.col-sm-9