diaspora/app/views/people/show.html.haml
2012-01-11 02:26:12 -08:00

43 lines
1.4 KiB
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :head do
= include_javascripts :people
- content_for :page_title do
= @person.name
.span-6
= render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }
- if user_signed_in? && @contact.persisted? && @contacts_of_contact.count > 0
.span-5.last#contacts_of_contact
.section.contact_pictures
%h4
= t('contacts', :count => @contacts_of_contact_count)
- for person in @contacts_of_contact
= person_image_link person
- if @contacts_of_contact.count > 8
%p.see_all= link_to t('.see_all'), person_contacts_path(@person)
.span-18.last
.stream_container
= render 'people/sub_header', :person => @person, :contact => @contact
/ hackity hack until we get a photo stream
- if @backbone && (@posts && @posts.length > 0) || (@stream && @stream.stream_posts.length > 0)
-if @post_type == :photos
= render 'photos/index', :photos => @posts
- else
#main_stream.stream
- else
#main_stream
%div{:style=>"text-align:center;", :class => "dull"}
- if @block.present?
= t('.ignoring', :name => @person.first_name)
- else
= t('.has_not_shared_with_you_yet', :name => @person.first_name)