removed private info if you are not friends

This commit is contained in:
maxwell 2010-11-06 16:34:41 -07:00
parent 3876de9cf2
commit a971985884

View file

@ -21,24 +21,19 @@
- for aspect in @aspects_with_person - for aspect in @aspects_with_person
%li= link_to aspect.name, aspect %li= link_to aspect.name, aspect
-if is_contact || person == current_user.person
%ul#profile_information %ul#profile_information
%li %li
%b bio %b bio
%br %br
= person.profile.bio = person.profile.bio
%li %li
%b gender %b gender
%br %br
= person.profile.gender = person.profile.gender
%li %li
%b born %b born
%br %br
= "#{time_ago_in_words(person.profile.birthday)} ago" if @person.profile.birthday = "#{time_ago_in_words(person.profile.birthday)} ago" if @person.profile.birthday
- if is_contact
/%li
/%i= t(".friends_since",:how_long_ago => how_long_ago(person))
%b.small= person.diaspora_handle %b.small= person.diaspora_handle