removed private info if you are not friends
This commit is contained in:
parent
3876de9cf2
commit
a971985884
1 changed files with 14 additions and 19 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue