From 1b48fb03434307fd85c982318cf8948984434324 Mon Sep 17 00:00:00 2001 From: nilsding Date: Wed, 12 Nov 2014 23:25:43 +0100 Subject: [PATCH] added question/answer counts to profile --- app/views/user/show.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/user/show.html.haml b/app/views/user/show.html.haml index 7de8c7c3..71c3ce17 100644 --- a/app/views/user/show.html.haml +++ b/app/views/user/show.html.haml @@ -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|