show.mobile.haml 992 Bytes
Newer Older
danielgrippi's avatar
danielgrippi committed
1
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
2 3 4
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

Fla's avatar
Fla committed
5
#author_info.header-full-width
Augier's avatar
Augier committed
6 7 8 9 10 11 12 13 14
  = person_image_tag @person, :thumb_medium
  .content
    %h2
      = @person.name
    %span.description
      = @person.diaspora_handle
    - if user_signed_in? && @person != current_user.person
      = render 'aspect_memberships/aspect_membership_dropdown'
    .clear
augier's avatar
augier committed
15
  .bottom-bar
Augier's avatar
Augier committed
16 17
    - if !@person.tag_string.blank? && user_signed_in?
      = Diaspora::Taggable.format_tags(@person.tag_string)
18 19 20 21

- if @post_type == :photos
  = render "photos/index", photos: @posts
- else
22
  .stream#main-stream
23 24 25
    - if @stream.stream_posts.length > 0
      = render "shared/stream", posts: @stream.stream_posts
      = render "shared/stream_more_button"
26
    - else
27 28 29
      .dull
      - if user_signed_in? && (current_user.person != @person)
        = t(".has_not_shared_with_you_yet", name: @person.first_name)