username in login bar now linked
This commit is contained in:
parent
d10ab2615f
commit
cf6ca7d9cb
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,9 @@
|
||||||
|
|
||||||
#userbar
|
#userbar
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
== Hey, #{current_user.name}!
|
%span
|
||||||
== You have #{current_user.points} points.
|
== Hey, #{link_to current_user.name, user_contributions_path(current_user)}!
|
||||||
|
== You have #{current_user.points} points.
|
||||||
= link_to 'Log out', logout_path
|
= link_to 'Log out', logout_path
|
||||||
- else
|
- else
|
||||||
= link_to login_path_with_return_to, :id => 'userbar-log-in' do
|
= link_to login_path_with_return_to, :id => 'userbar-log-in' do
|
||||||
|
|
Loading…
Reference in a new issue