Fix and simplify current_page? check on profile page

This commit is contained in:
Jonne Haß 2014-02-10 01:18:26 +01:00
parent cb13d30a02
commit 1b3a2185eb

View file

@ -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