diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml index 48bcd5b5a0e98d34702beb6a15729291d7cbcd6b..c731de4beecc8144d19a5ec9acbce7314bd32d18 100644 --- a/app/views/people/_profile_sidebar.html.haml +++ b/app/views/people/_profile_sidebar.html.haml @@ -35,7 +35,7 @@ %br %hr{:style=>"width:300px;"} - -if (contact && !contact.pending?) || person == current_user.person || @incoming_request + -if (contact.persisted? && !contact.pending?) || person == current_user.person || @incoming_request %ul#profile_information %li - unless person.profile.bio.blank? diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index d40ba3a1d1b7f9e7d9ee0091b8330f41b2001078..928c90a082b90beb88e0486a51b61f4ff68f7bc6 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -8,7 +8,7 @@ .span-8.append-1.last = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact } - - if @contact && @contacts_of_contact.count > 0 + - if @contact.persisted? && @contacts_of_contact.count > 0 .span-8.last %hr{:style=>"width:300px;"} .section.contact_pictures diff --git a/app/views/people/show.mobile.haml b/app/views/people/show.mobile.haml index 95b0f4eda00d0f4d94e72bcc836d357e0feb0d57..08e14a182e2d6742202d2ee2be66571febb39ae0 100644 --- a/app/views/people/show.mobile.haml +++ b/app/views/people/show.mobile.haml @@ -7,7 +7,7 @@ DIASPORA* #author_info.profile - - unless @contact || current_user.person == @person + - unless @contact.persisted? || current_user.person == @person .right = link_to "start sharing", {:controller => "contact", @@ -24,7 +24,7 @@ .description = @person.diaspora_handle -- unless @contact || current_user.person == @person +- unless @contact.persisted? || current_user.person == @person - if @incoming_request .floating %h3