-# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - content_for :page_title do = @person.name .span-8.append-1.last = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact } - if @contact && @similar_people.count > 0 .span-8.last %hr{:style=>"width:300px;"} .section.contact_pictures %h4 = t('.similar_contacts') - for person in @similar_people = person_image_link person .span-15.last #author_info - unless @contact || current_user.person == @person .right = link_to "start sharing", {:controller => "people", :action => "share_with", :id => @person.id}, :class => 'share_with button', :rel => 'facebox' - else .right - if @post_type == :photos = link_to t('layouts.header.view_profile'), person_path(@person) - else = link_to t('_photos'), person_photos_path(@person) %h3 = @person.name .description = @person.diaspora_handle %hr - unless @contact || current_user.person == @person - if @incoming_request .floating %h3 = t('.incoming_request') %h4 = link_to t('.return_to_aspects'), aspects_manage_path = t('.to_accept_or_ignore') - if @posts.count > 0 -if @post_type == :photos = render 'photos/index', :photos => @posts - else #main_stream.stream = render 'shared/stream', :posts => @posts = will_paginate @posts - else #stream %li{:style=>"text-align:center;"} .dull= t('.no_posts')