diaspora/app/views/people/show.mobile.haml
2011-04-08 10:37:08 -07:00

48 lines
1.3 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.
- content_for :page_title do
%h1
DIASPORA*
#author_info.profile
- if user_signed_in? && !(@contact.persisted? || current_user.person == @person)
.right
= link_to "start sharing",
{:controller => "contacts",
:action => "new",
:id => @person.id},
:class => 'share_with button',
:rel => 'facebox'
= person_image_tag @person, :thumb_medium
.content
%h3
= @person.name
.description
= @person.diaspora_handle
- if user_signed_in? && !(@contact.persisted? || current_user.person == @person)
- if @incoming_request
.floating
%h3
= t('.incoming_request', :name => @person.name)
%h4
= link_to t('.return_to_aspects'), aspects_manage_path
= t('.to_accept_or_ignore')
- if @posts.length > 0
-if @post_type == :photos
= render 'photos/index', :photos => @posts
- else
#main_stream.stream
= render 'shared/stream', :posts => @posts
#pagination
=link_to(t('more'), person_path(@person, :page => next_page), :class => 'paginate')
- else
#stream
%li{:style=>"text-align:center;"}
.dull= t('.no_posts')