aboutsummaryrefslogtreecommitdiff
path: root/templates/user.tmpl
blob: 3347f9294afe7e60aece839693ee165be71db8b1 (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
{{template "header.tmpl"}}
{{template "navigation.tmpl" .NavbarData}}
<div class="page-title"> User </div>

<div class="user-info-container">
<div>
	<div class="user-profile-img-container">
		<img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
	</div>
	<div class="user-profile-details-container">
		<div>
			<span class="status-dname"> {{WithEmojis .User.DisplayName .User.Emojis}} </span>  
			<span class="status-uname"> {{.User.Acct}} </span>
		</div>
		<div>
			<span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>  
			{{if .User.Pleroma.Relationship.Following}} 
			<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
			    <input type="submit" value="unfollow" class="btn-link">
			</form>
			{{end}} 
			{{if .User.Pleroma.Relationship.Requested}} 
			<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
			    <input type="submit" value="cancel request" class="btn-link">
			</form>
			{{end}} 
			{{if not .User.Pleroma.Relationship.Following}} 
			<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
			    <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link">
			</form>
			{{end}} 
		</div>
		<div>
			{{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers
		</div>
	</div>
	<div class="user-profile-decription">
	{{.User.Note}}
	</div>
</div>
</div>

{{range .Statuses}}
{{template "status.tmpl" .}}
{{end}}

<div class="pagination">
	{{if .HasNext}}
		<a href="{{.NextLink}}">next</a>
	{{end}}
</div>

{{template "footer.tmpl"}}