Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « people « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ec8789f3ef7118e1c50a30ea8c49945eb07babf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-#   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
  profile

.span-4.append-1.last
  %h2= @person.real_name
  #profile
    .profile_photo
      = person_image_link(@person)
    %ul
      -unless @posts.first.nil?
        %li
          %b.small= @person.diaspora_handle
        %li
          %i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))

      - if @person != current_user.person && @contact
        %li
          %i= t(".friends_since",:how_long_ago => how_long_ago(@person))
        %li
          .person_aspects
            ➔
            %ul
              - for aspect in @aspects_with_person
                %li= link_to aspect.name, aspect

    - if @person != current_user.person && current_user.friends.include?(@person)
      = link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button"

    - if @person == current_user.person
      %b
        = link_to "Edit my profile", edit_person_path(@person)

    %br
    %br
    %ul
      %li= link_to 'stream', person_path(@person)
      %li= link_to 'photos', person_photos_path(@person)


.span-15.last
  - if @posts.count > 0
    %ul#stream
      - for post in @posts
        = render type_partial(post), :post => post unless post.class == Album
      = will_paginate @posts
  - else
    %h3= t('.no_posts')