added some counters to user profiles
This commit is contained in:
parent
8ab5458b1b
commit
9f4d9214bd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue