diaspora/app/views/people/show.html.haml

41 lines
1.2 KiB
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
.span-4.append-1.last
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :is_contact => @is_contact}
.span-15.last
= render 'shared/author_info', :person => @person
- if @contact || current_user.person == @person
- if @posts.count > 0
-if @post_type == :photos
= render 'photos/index', :photos => @posts
- else
= render 'shared/stream', :posts => @posts
= will_paginate @posts
- else
%h3= t('.no_posts')
- else
.floating
%h3
= t('.not_friends', :name => @person.real_name)
- unless @pending_request
%h3
.description
= t('.request_people')
= form_for Request.new do |f|
= f.select(:aspect_id, @aspects_dropdown_array)
= f.hidden_field :destination_url, :value => @person.diaspora_handle
= f.submit t('.add_friend')
- else
%h3
.description
= t('.already_requested', :name => @person.real_name)