Fix and simplify current_page? check on profile page
This commit is contained in:
parent
cb13d30a02
commit
1b3a2185eb
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
= t('.you_have_no_tags')
|
= t('.you_have_no_tags')
|
||||||
%span.add_tags
|
%span.add_tags
|
||||||
= link_to t('.add_some'), edit_profile_path
|
= 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
|
%hr
|
||||||
= render 'aspects/aspect_stream', :stream => @stream
|
= render 'aspects/aspect_stream', :stream => @stream
|
||||||
%hr
|
%hr
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue