-# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. .span-24.last #author_info .from{:style=>"padding-left:0;display:block;"} %h2{:style=>"display:block;"} = @person.name .right{:style => "top:0;"} %span.description = @person.diaspora_handle /= info_text(t('aspects.index.handle_explanation')) #person_nav_links = link_to t('layouts.header.view_profile'), person_path(@person) = link_to t('_photos'), person_photos_path(@person) .span-8.append-1.last = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact} .span-15.last - if @contact || current_user.person == @person - if @posts.count > 0 -if @post_type == :photos = render 'photos/index', :photos => @posts - else = render 'shared/stream', :posts => @post_hashes = will_paginate @posts - else %ul#stream %li %h3= t('.no_posts') - elsif current_user.has_incoming_request_from(@person) .floating %h3 = t('.incoming_request') %h4 = link_to t('.return_to_aspects'), aspects_manage_path = t('.to_accept_or_ignore') - else .floating %h3 = t('.not_connected', :name => @person.name) - unless pending_request_for(@person) %h3 .description = t('.request_people') = render :partial =>'requests/new_request_to_person', :locals => {:aspects => @aspects, :destination_handle => @person.diaspora_handle} - else %h3 .description = t('.already_requested', :name => @person.name)