-
Notifications
You must be signed in to change notification settings - Fork 235
/
profile.tpl
129 lines (102 loc) · 3.72 KB
/
profile.tpl
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<div class="account">
<!-- IMPORT partials/account/header.tpl -->
<div class="profile row">
<h1 class="fullname"><!-- IF fullname -->{fullname}<!-- ELSE -->{username}<!-- ENDIF fullname --></h1>
<h2 class="username"><!-- IF !banned -->@{username}<!-- ELSE -->[[user:banned]]<!-- ENDIF !banned --></h2>
<!-- IF aboutme -->
<span component="aboutme" class="text-center aboutme">{aboutme}</span>
<!-- ENDIF aboutme -->
<div class="account-stats">
<!-- IF reputation -->
<div class="stat">
<div class="human-readable-number" title="{reputation}">{reputation}</div>
<span class="stat-label">[[global:reputation]]</span>
</div>
<!-- ENDIF reputation -->
<div class="stat">
<div class="human-readable-number" title="{postcount}">{postcount}</div>
<span class="stat-label">[[global:posts]]</span>
</div>
<div class="stat">
<div class="human-readable-number" title="{profileviews}">{profileviews}</div>
<span class="stat-label">[[user:profile_views]]</span>
</div>
<div class="stat">
<div class="human-readable-number" title="{followerCount}">{followerCount}</div>
<span class="stat-label">[[user:followers]]</span>
</div>
<div class="stat">
<div class="human-readable-number" title="{followingCount}">{followingCount}</div>
<span class="stat-label">[[user:following]]</span>
</div>
</div>
<div class="text-center profile-meta">
<span>[[user:joined]]</span>
<strong class="timeago" title="{joindateISO}"></strong>
<span>[[user:lastonline]]</span>
<strong class="timeago" title="{lastonlineISO}"></strong><br />
<!-- IF email -->
<span>[[user:email]]</span>
<strong><i class="fa fa-eye-slash {emailClass}" title="[[user:email_hidden]]"></i> {email}</strong>
<!-- ENDIF email -->
<!-- IF websiteName -->
<span>[[user:website]]</span>
<strong><a href="{websiteLink}" rel="nofollow">{websiteName}</a></strong>
<!-- ENDIF websiteName -->
<!-- IF location -->
<span>[[user:location]]</span>
<strong>{location}</strong>
<!-- ENDIF location -->
<!-- IF age -->
<span>[[user:age]]</span>
<strong>{age}</strong>
<!-- ENDIF age -->
</div>
</div>
<hr />
<div class="row">
<div class="col-xs-12 account-block hidden">
<div class="account-picture-block text-center">
<span>
<span class="account-username"> {username}</span>
</span>
<!-- IF !isSelf -->
<!-- IF isFollowing -->
<a component="account/unfollow" href="#" class="btn btn-warning btn-sm">[[user:unfollow]]</a>
<!-- ELSE -->
<a component="account/follow" href="#" class="btn btn-success btn-sm">[[user:follow]]</a>
<!-- ENDIF isFollowing -->
<!-- ENDIF !isSelf -->
</div>
<!-- IF groups.length -->
<div class="hidden">
<!-- BEGIN groups -->
<a href="{config.relative_path}/groups/{groups.slug}"><span class="label group-label inline-block" style="background-color: {groups.labelColor};"><!-- IF groups.icon --><i class="fa {groups.icon}"></i> <!-- ENDIF groups.icon -->{groups.userTitle}</span></a>
<!-- END groups -->
</div>
<!-- ENDIF groups.length -->
<br /><br />
<!-- IF ips.length -->
<div class="hidden">
<div class="panel-heading">
<h3 class="panel-title">[[global:recentips]]</h3>
</div>
<div class="panel-body">
<!-- BEGIN ips -->
<div>{ips.ip}</div>
<!-- END ips -->
</div>
</div>
<!-- ENDIF ips.length -->
</div>
<h1>[[pages:account/posts, {username}]]</h1>
<div class="col-xs-12">
<!-- IF !posts.length -->
<div class="alert alert-warning">[[user:has_no_posts]]</div>
<!-- ENDIF !posts.length -->
<!-- IMPORT partials/posts_list.tpl -->
</div>
</div>
<br/>
<div id="user-action-alert" class="alert alert-success hide"></div>
</div>