From cf6ca7d9cb8a83ab09fcce35434c1674c486e6f3 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 6 Nov 2010 18:12:42 -0400 Subject: [PATCH] username in login bar now linked --- app/views/layouts/application.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 1ef20106..ea0fa037 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -28,8 +28,9 @@ #userbar - if user_signed_in? - == Hey, #{current_user.name}! - == You have #{current_user.points} points. + %span + == Hey, #{link_to current_user.name, user_contributions_path(current_user)}! + == You have #{current_user.points} points. = link_to 'Log out', logout_path - else = link_to login_path_with_return_to, :id => 'userbar-log-in' do