From 1b3a2185ebfa2a9304c773af09b2e737f62176af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Mon, 10 Feb 2014 01:18:26 +0100 Subject: [PATCH] Fix and simplify current_page? check on profile page --- app/views/people/_sub_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/people/_sub_header.html.haml b/app/views/people/_sub_header.html.haml index a8e4f0575..56c9552d9 100644 --- a/app/views/people/_sub_header.html.haml +++ b/app/views/people/_sub_header.html.haml @@ -28,7 +28,7 @@ = t('.you_have_no_tags') %span.add_tags = link_to t('.add_some'), edit_profile_path - - if user_signed_in? && person == current_user.person && current_page?(controller: :people, action: :show) + - if user_signed_in? && current_page?(person_path current_user.person) %hr = render 'aspects/aspect_stream', :stream => @stream %hr