Use local url for for mentioned users
[bloat] / templates / user.tmpl
1 {{template "header.tmpl"}}
2 {{template "navigation.tmpl" .NavbarData}}
3 <div class="page-title"> User </div>
4
5 <div class="user-info-container">
6 <div>
7         <div class="user-profile-img-container">
8                 <img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
9         </div>
10         <div class="user-profile-details-container">
11                 <div>
12                         <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>  
13                         <span class="status-uname"> {{.User.Acct}} </span>
14                 </div>
15                 <div>
16                         <span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>  
17                         {{if .User.Pleroma.Relationship.Following}} 
18                         <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
19                             <input type="submit" value="unfollow" class="btn-link">
20                         </form>
21                         {{end}} 
22                         {{if .User.Pleroma.Relationship.Requested}} 
23                         <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
24                             <input type="submit" value="cancel request" class="btn-link">
25                         </form>
26                         {{end}} 
27                         {{if not .User.Pleroma.Relationship.Following}} 
28                         <form class="d-inline" action="/follow/{{.User.ID}}" method="post">
29                             <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link">
30                         </form>
31                         {{end}} 
32                 </div>
33                 <div>
34                         {{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers
35                 </div>
36         </div>
37         <div class="user-profile-decription">
38         {{.User.Note}}
39         </div>
40 </div>
41 </div>
42
43 {{range .Statuses}}
44 {{template "status.tmpl" .}}
45 {{end}}
46
47 <div class="pagination">
48         {{if .HasNext}}
49                 <a href="{{.NextLink}}">next</a>
50         {{end}}
51 </div>
52
53 {{template "footer.tmpl"}}
54