Use PeopleHelper#sharing_message view helper method in the profile sidebar.

This commit is contained in:
David Thompson 2013-06-19 22:04:07 -04:00
parent f7cceecb52
commit 1e5ef88d8c

View file

@ -5,14 +5,11 @@
#profile #profile
.profile_photo .profile_photo
= person_image_link(person, :size => :thumb_large, :to => :photos) = 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 user_signed_in?
- if person != current_user.person - if person != current_user.person
= sharing_message(@person, @contact)
- if @contact && @contact.receiving? - if @contact && @contact.receiving?
%br %br
= link_to t('people.show.mention'), new_status_message_path(:person_id => @person.id), :class => 'button', :rel => 'facebox' = link_to t('people.show.mention'), new_status_message_path(:person_id => @person.id), :class => 'button', :rel => 'facebox'