added question/answer counts to profile

This commit is contained in:
nilsding 2014-11-12 23:25:43 +01:00
parent b1a1c83163
commit 1b48fb0343
1 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@
%li.list-group-item
Followings
%span.badge#friend-count= @user.friend_count
%li.list-group-item
Questions
%span.badge#friend-count= @user.asked_count
%li.list-group-item
Answers
%span.badge#friend-count= @user.answered_count
.col-md-9.col-xs-12.col-sm-9
= render 'shared/questionbox'
- @answers.each do |a|