Merge branch 'master' of git.freesoftwareextremist.com:public/bloat
[bloat] / templates / notification.tmpl
1 {{with .Data}}
2 {{template "header.tmpl" (WithContext .HeaderData $.Ctx)}}
3 {{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
4 <div class="page-title"> Notifications </div>
5
6 {{range .Notifications}}
7 <div class="notification-container {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
8         {{if eq .Type "follow"}}
9         <div class="notification-follow-container">
10                 <div class="status-profile-img-container">
11                         <a class="img-link" href="/user/{{.Account.ID}}" >
12                                 <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
13                         </a>
14                 </div>
15                 <div>
16                         <div class="notification-info-text">
17                                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
18                                 <span> followed you </span>
19                                 <span>
20                                         - <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> 
21                                 </span>
22                         </div>
23                         <div class="notification-follow-uname">
24                                 @{{.Account.Acct}}
25                         </div>
26                 </div>
27         </div>
28
29         {{else if eq .Type "mention"}}
30         {{template "status" (WithContext .Status $.Ctx)}}
31
32         {{else if eq .Type "reblog"}}
33         <div class="retweet-info">
34                 <a class="img-link" href="/user/{{.Account.ID}}">
35                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
36                 </a>
37                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
38                 <span> retweeted your post </span>
39                 <span>
40                         - <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> 
41                 </span>
42         </div>
43         {{template "status" (WithContext .Status $.Ctx)}}
44
45         {{else if eq .Type "favourite"}}
46         <div class="retweet-info">
47                 <a class="img-link" href="/user/{{.Account.ID}}">
48                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
49                 </a>
50                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
51                 <span> liked your post </span>
52                 <span>
53                         - <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> 
54                 </span>
55         </div>
56         {{template "status" (WithContext .Status $.Ctx)}}
57         {{end}}
58 </div>
59 {{end}}
60
61 <div class="pagination">
62         {{if .NextLink}}
63                 <a href="{{.NextLink}}">next</a>
64         {{end}}
65 </div>
66
67 {{template "footer.tmpl"}}
68 {{end}}