show.mobile.haml 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
-#   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
  - unless @contact || current_user.person == @person
    .right
      = link_to "start sharing",
13 14
        {:controller => "contact",
        :action => "new",
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
        :id => @person.id},
        :class => 'share_with button',
        :rel => 'facebox'

  = person_image_tag @person, :thumb_medium

  .content
    %h3
      = @person.name
      .description
        = @person.diaspora_handle

- unless @contact || current_user.person == @person
  - if @incoming_request
    .floating
      %h3
31
        = t('.incoming_request', :name => @person.name)
32 33 34 35 36 37 38 39 40 41
      %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
42 43
      %a.paginate
        = t("more")
44 45 46 47 48 49 50
  = will_paginate @posts

- else
  #stream
    %li{:style=>"text-align:center;"}
      .dull= t('.no_posts')