da6164b4dc8ea56931c2d6ee589b10379ee7dd3a
[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                 <a href="/user/{{.Account.ID}}" >
10                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
11                 </a>
12                 <div>
13                         <div>
14                                 <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span>  
15                                 <span class="icon dripicons-user-group"></span> 
16                                 followed you
17                         </div>
18                         <div class="notification-follow-uname">
19                                 @{{.Account.Acct}}
20                         </div>
21                 </div>
22         </div>
23
24         {{else if eq .Type "mention"}}
25         {{template "status" .Status}}
26
27         {{else if eq .Type "reblog"}}
28         <div class="notification-retweet-container">
29                 <a href="/user/{{.Account.ID}}" >
30                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
31                 </a>
32                 <div>
33                         <div>
34                                 <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span>  
35                                 <span class="icon dripicons-retweet retweeted"></span> 
36                                 retweeted your post
37                         </div>
38                         {{template "status" .Status}}
39                 </div>
40         </div>
41
42         {{else if eq .Type "favourite"}}
43         <div class="notification-like-container">
44                 <a href="/user/{{.Account.ID}}" >
45                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
46                 </a>
47                 <div>
48                         <div>
49                                 <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span>  
50                                 <span class="icon dripicons-star liked"></span> 
51                                 liked your post
52                         </div>
53                         {{template "status" .Status}}
54                 </div>
55         </div>
56         {{end}}
57 </div>
58 {{end}}
59
60 <div class="pagination">
61         {{if .HasNext}}
62                 <a href="{{.NextLink}}">next</a>
63         {{end}}
64 </div>
65 {{template "footer.tmpl"}}