From b4408ffbd231a88d478c4ecb3f40346d14706723 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 8 Dec 2014 17:11:54 +0100 Subject: [PATCH] !!! (aka. made follower/following links clickable) --- 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 9b48c1d4..a36d3d6d 100644 --- a/app/views/user/_profile_info.html.haml +++ b/app/views/user/_profile_info.html.haml @@ -24,12 +24,14 @@ %i.fa.fa-location-arrow = @user.location .row - .col-md-6.col-sm-6.col-xs-6 - %h4.entry-text#follower-count= @user.follower_count - %h6.entry-subtext Follower - .col-md-6.col-sm-6.col-xs-6 - %h4.entry-text#friend-count= @user.friend_count - %h6.entry-subtext Following + %a{href: show_user_followers_path(@user.screen_name)} + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#follower-count= @user.follower_count + %h6.entry-subtext Follower + %a{href: show_user_following_path(@user.screen_name)} + .col-md-6.col-sm-6.col-xs-6 + %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