From a971985884d800ca73c1d1cf80f674790b1990a7 Mon Sep 17 00:00:00 2001 From: maxwell Date: Sat, 6 Nov 2010 16:34:41 -0700 Subject: [PATCH] removed private info if you are not friends --- app/views/people/_profile_sidebar.haml | 33 +++++++++++--------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/app/views/people/_profile_sidebar.haml b/app/views/people/_profile_sidebar.haml index b2897e763..13ff35288 100644 --- a/app/views/people/_profile_sidebar.haml +++ b/app/views/people/_profile_sidebar.haml @@ -21,24 +21,19 @@ - for aspect in @aspects_with_person %li= link_to aspect.name, aspect - - %ul#profile_information - %li - %b bio - %br - = person.profile.bio - %li - %b gender - %br - = person.profile.gender - %li - %b born - %br - = "#{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)) + -if is_contact || person == current_user.person + %ul#profile_information + %li + %b bio + %br + = person.profile.bio + %li + %b gender + %br + = person.profile.gender + %li + %b born + %br + = "#{time_ago_in_words(person.profile.birthday)} ago" if @person.profile.birthday %b.small= person.diaspora_handle -