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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
-# 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 && @contact
= 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
- if @person != current_user.person && @contact
%ul
%li= link_to 'stream', person_path(@person)
%li= link_to 'photos', person_photos_path(@person)
.span-15.last
- if @contact || current_user.person == @person
- 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')
- else
.floating
%h3
= "You're currently not friends with #{@person.real_name}"
- unless @pending_request
%h3
.description
If you'd like, you can request to place him/her in one of your aspects.
= form_for Request.new do |f|
= f.select(:aspect_id, @aspects_dropdown_array)
= f.hidden_field :destination_url, :value => @person.diaspora_handle
= f.submit t('.add_friend')
- else
%h3
.description
= "You have already sent a request to #{@person.real_name}."
|