blob: 5f70552e7bc2a4759521f6160b63c756efe308ab (
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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<div id="profile_photo" class="profile_photo">
{{#linkToPerson this}}
{{{personImage this "large"}}}
{{/linkToPerson}}
</div>
{{#if do_profile_btns}}
<div id="profile_buttons" class="{{relationship}}">
{{{sharingBadge this}}}
{{#if is_receiving}}
{{!-- create status message with mention --}}
<div class="profile_button">
<a href="{{urlTo 'new_status_message' person_id=id}}" rel="facebox">
<div id="mention_button" class="icons-mention" title="{{t 'people.mention'}}" data-placement="bottom"></div>
</a>
</div>
{{/if}}
{{#if is_mutual}}
{{!-- create private conversation with person --}}
<div class="profile_button">
<a href="{{urlTo 'new_conversation' contact_id=contact.id name=name facebox=true}}" rel="facebox">
<div id="message_button" class="icons-message" title="{{t 'people.message'}}" data-placement="bottom"></div>
</a>
</div>
{{/if}}
{{#if is_not_blocked}}
{{!-- ignore the person --}}
<div class="profile_button">
<a href="#" rel="nofollow">
<div id="block_user_button" class="icons-ignoreuser block_user" title="{{t 'ignore'}}" data-placement="bottom"></div>
</a>
</div>
{{/if}}
</div>
{{/if}}
{{#if do_profile_info}}
<ul id="profile_information">
{{#with profile}}
{{#if bio}}
<li>
<h4>{{t 'profile.bio'}}</h4>
<div class="{{txtDirClass bio}}">{{fmtText bio}}</div>
</li>
{{/if}}
{{#if location}}
<li>
<h4>{{t 'profile.location'}}</h4>
<div class="{{txtDirClass location}}">{{fmtText location}}</div>
</li>
{{/if}}
{{#if gender}}
<li>
<h4>{{t 'profile.gender'}}</h4>
{{gender}}
</li>
{{/if}}
{{#if birthday}}
<li>
<h4>{{t 'profile.born'}}</h4>
{{birthday}}
</li>
{{/if}}
{{/with}}
{{#if do_photos}}
<li class="image_list">
<h4>
{{t 'profile.photos'}}
<div class="item_count">{{photos.count}}</div>
</h4>
<div class="section photo_pictures">
{{#each photos.items}}
<img src="{{sizes.small}}" alt="{{guid}}" />
{{/each}}
</div>
<p class="see_all">
<a href="{{urlTo 'person_photos' guid}}">{{t 'header.view_all'}}</a>
</p>
</li>
{{/if}}
{{#if do_contacts}}
<li class="image_list">
<h4>
{{t 'profile.contacts'}}
<div class="item_count">{{contacts.count}}</div>
</h4>
<div class="section contact_pictures">
{{#each contacts.items}}
{{#linkToPerson this}}{{{personImage this "small"}}}{{/linkToPerson}}
{{/each}}
</div>
<p class="see_all">
<a href="{{urlTo 'person_contacts' guid}}">{{t 'header.view_all'}}</a>
</p>
</li>
{{/if}}
</ul>
{{/if}}
|