Switch to fork-awesome font
[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                 <a class="img-link" href="{{.User.AvatarStatic}}" target="_blank">
9                         <img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
10                 </a>
11         </div>
12         <div class="user-profile-details-container">
13                 <div>
14                         <span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>  
15                         <span class="status-uname"> {{.User.Acct}} </span>
16                         <a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
17                                 <i class="fa fa-link"></i>
18                         </a>
19                 </div>
20                 <div>
21                         <span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>  
22                         {{if .User.Pleroma.Relationship.Following}} 
23                         <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
24                             <input type="submit" value="unfollow" class="btn-link">
25                         </form>
26                         {{end}} 
27                         {{if .User.Pleroma.Relationship.Requested}} 
28                         <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
29                             <input type="submit" value="cancel request" class="btn-link">
30                         </form>
31                         {{end}} 
32                         {{if not .User.Pleroma.Relationship.Following}} 
33                         <form class="d-inline" action="/follow/{{.User.ID}}" method="post">
34                             <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link">
35                         </form>
36                         {{end}} 
37                 </div>
38                 <div>
39                         {{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers
40                 </div>
41         </div>
42         <div class="user-profile-decription">
43         {{.User.Note}}
44         </div>
45 </div>
46 </div>
47
48 {{range .Statuses}}
49 {{template "status.tmpl" .}}
50 {{end}}
51
52 <div class="pagination">
53         {{if .HasNext}}
54                 <a href="{{.NextLink}}">next</a>
55         {{end}}
56 </div>
57
58 {{template "footer.tmpl"}}
59