e46ce8abd1279dd73986cc374cf57cd9e1507410
[bloat] / templates / notification.tmpl
1 {{template "header.tmpl"}}
2 {{template "navigation.tmpl" .NavbarData}}
3 <div class="page-title"> Notifications </div>
4
5 {{range .Notifications}}
6 <div class="notification-container {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
7         {{if eq .Type "follow"}}
8         <div class="notification-follow-container">
9                 <div class="status-profile-img-container">
10                         <a class="img-link" href="/user/{{.Account.ID}}" >
11                                 <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
12                         </a>
13                 </div>
14                 <div>
15                         <div>
16                                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
17                                 <span class="icon dripicons-user-group"></span> 
18                                 followed you
19                         </div>
20                         <div class="notification-follow-uname">
21                                 @{{.Account.Acct}}
22                         </div>
23                 </div>
24         </div>
25
26         {{else if eq .Type "mention"}}
27         {{template "status" .Status}}
28
29         {{else if eq .Type "reblog"}}
30         <div class="notification-retweet-container">
31                 <div class="status-profile-img-container">
32                         <a class="img-link" href="/user/{{.Account.ID}}" >
33                                 <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
34                         </a>
35                 </div>
36                 <div>
37                         <div>
38                                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
39                                 <span class="icon dripicons-retweet retweeted"></span> 
40                                 retweeted your post
41                         </div>
42                         {{template "status" .Status}}
43                 </div>
44         </div>
45
46         {{else if eq .Type "favourite"}}
47         <div class="notification-like-container">
48                 <div class="status-profile-img-container">
49                         <a class="img-link" href="/user/{{.Account.ID}}" >
50                                 <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
51                         </a>
52                 </div>
53                 <div>
54                         <div>
55                                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
56                                 <span class="icon dripicons-star liked"></span> 
57                                 liked your post
58                         </div>
59                         {{template "status" .Status}}
60                 </div>
61         </div>
62         {{end}}
63 </div>
64 {{end}}
65
66 <div class="pagination">
67         {{if .HasNext}}
68                 <a href="{{.NextLink}}">next</a>
69         {{end}}
70 </div>
71 {{template "footer.tmpl"}}