From 1e5ef88d8c9b82e78494e959951aa6b25ae0d6dd Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 19 Jun 2013 22:04:07 -0400 Subject: [PATCH] Use PeopleHelper#sharing_message view helper method in the profile sidebar. --- app/views/people/_profile_sidebar.html.haml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml index 0d91324af..4821a0965 100644 --- a/app/views/people/_profile_sidebar.html.haml +++ b/app/views/people/_profile_sidebar.html.haml @@ -5,14 +5,11 @@ #profile .profile_photo = person_image_link(person, :size => :thumb_large, :to => :photos) - - if contact.sharing? - .info - = image_tag('icons/check_yes_ok.png') - = person.name - is sharing with you - if user_signed_in? - if person != current_user.person + = sharing_message(@person, @contact) + - if @contact && @contact.receiving? %br = link_to t('people.show.mention'), new_status_message_path(:person_id => @person.id), :class => 'button', :rel => 'facebox'