From 75bca2430b556a14e987e6f4954f2a382104d31d Mon Sep 17 00:00:00 2001 From: Andreas N Date: Fri, 19 Dec 2014 22:37:04 +0100 Subject: [PATCH] added links to pages --- app/views/user/_profile_info.html.haml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/user/_profile_info.html.haml b/app/views/user/_profile_info.html.haml index de1376a0..0489c121 100644 --- a/app/views/user/_profile_info.html.haml +++ b/app/views/user/_profile_info.html.haml @@ -33,10 +33,12 @@ %h4.entry-text#friend-count= @user.friend_count %h6.entry-subtext Following .row - .col-md-6.col-sm-6.col-xs-6 - %h4.entry-text#asked-count= @user.asked_count - %h6.entry-subtext Questions - .col-md-6.col-sm-6.col-xs-6 - %h4.entry-text#answered-count= @user.answered_count - %h6.entry-subtext Answers + %a{href: show_user_questions_path(@user.screen_name)} + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#asked-count= @user.asked_count + %h6.entry-subtext Questions + %a{href: show_user_profile_path(@user.screen_name)} + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#answered-count= @user.answered_count + %h6.entry-subtext Answers = render 'user/actions', user: @user, type: :follower \ No newline at end of file