0 |
{{with .Data}} |
1 |
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}} |
2 |
<div class="page-title-container"> |
3 |
<span class="page-title"> |
4 |
Sciigoj |
5 |
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}} |
6 |
({{.UnreadCount }}) |
7 |
{{end}} |
8 |
</span> |
9 |
<a class="page-refresh" href="/notifications" target="_self" accesskey="R" title="Reenlegi (R)">reenlegi</a> |
10 |
{{if .ReadID}} |
11 |
<form class="notification-read" action="/notifications/read?max_id={{.ReadID}}" method="post" target="_self"> |
12 |
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
13 |
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
14 |
<input type="submit" value="read" class="btn-link" accesskey="C" title="Marki kiel legitaj (C)"> |
15 |
</form> |
16 |
{{end}} |
17 |
</div> |
18 |
|
19 |
{{range .Notifications}} |
20 |
<div class="notification-container {{.Type}} {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}"> |
21 |
{{if eq .Type "follow"}} |
22 |
<div class="notification-follow-container"> |
23 |
<div class="status-profile-img-container"> |
24 |
<a class="img-link" href="/user/{{.Account.ID}}"> |
25 |
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="profile-avatar" height="48" /> |
26 |
</a> |
27 |
</div> |
28 |
<div class="notification-follow"> |
29 |
<div class="notification-info-text"> |
30 |
<bdi class="status-dname"> {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} </bdi> |
31 |
<span class="notification-text"> abonis vin - |
32 |
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> |
33 |
</span> |
34 |
</div> |
35 |
<div> |
36 |
<a href="/user/{{.Account.ID}}"> <span class="status-uname"> @{{.Account.Acct}} </span> </a> |
37 |
</div> |
38 |
</div> |
39 |
</div> |
40 |
|
41 |
{{else if eq .Type "follow_request"}} |
42 |
<div class="notification-follow-container"> |
43 |
<div class="status-profile-img-container"> |
44 |
<a class="img-link" href="/user/{{.Account.ID}}"> |
45 |
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="profile-avatar" height="48" /> |
46 |
</a> |
47 |
</div> |
48 |
<div class="notification-follow"> |
49 |
<div class="notification-info-text"> |
50 |
<bdi class="status-dname"> {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} </bdi> |
51 |
<span class="notification-text"> volas abonis vin - |
52 |
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> |
53 |
</span> |
54 |
</div> |
55 |
<div> |
56 |
<a href="/user/{{.Account.ID}}"> <span class="status-uname"> @{{.Account.Acct}} </span> </a> |
57 |
</div> |
58 |
<form class="d-inline" action="/accept/{{.Account.ID}}" method="post" target="_self"> |
59 |
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
60 |
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
61 |
<input type="submit" value="accept" class="btn-link"> |
62 |
</form> |
63 |
- |
64 |
<form class="d-inline" action="/reject/{{.Account.ID}}" method="post" target="_self"> |
65 |
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
66 |
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
67 |
<input type="submit" value="reject" class="btn-link"> |
68 |
</form> |
69 |
</div> |
70 |
</div> |
71 |
|
72 |
{{else if eq .Type "mention"}} |
73 |
{{template "status" (WithContext .Status $.Ctx)}} |
74 |
|
75 |
{{else if eq .Type "reblog"}} |
76 |
<div class="retweet-info"> |
77 |
<a class="img-link" href="/user/{{.Account.ID}}"> |
78 |
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="48" /> |
79 |
</a> |
80 |
<a href="/user/{{.Account.ID}}"> |
81 |
<span class="status-uname"> @{{.Account.Acct}} </span> |
82 |
</a> |
83 |
<span class="notification-text"> ripetis vian afiŝon - |
84 |
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> |
85 |
</span> |
86 |
</div> |
87 |
{{template "status" (WithContext .Status $.Ctx)}} |
88 |
|
89 |
{{else if eq .Type "favourite"}} |
90 |
<div class="retweet-info"> |
91 |
<a class="img-link" href="/user/{{.Account.ID}}"> |
92 |
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="48" /> |
93 |
</a> |
94 |
<a href="/user/{{.Account.ID}}"> |
95 |
<span class="status-uname"> @{{.Account.Acct}} </span> |
96 |
</a> |
97 |
<span class="notification-text"> ŝatis vian afiŝon - |
98 |
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> |
99 |
</span> |
100 |
</div> |
101 |
{{template "status" (WithContext .Status $.Ctx)}} |
102 |
|
103 |
{{else}} |
104 |
<div class="retweet-info"> |
105 |
<a class="img-link" href="/user/{{.Account.ID}}"> |
106 |
<img class="status-profile-img" src="{{.Account.Avatar}}" title="@{{.Account.Acct}}" alt="avatar" height="48" /> |
107 |
</a> |
108 |
<a href="/user/{{.Account.ID}}"> |
109 |
<span class="status-uname"> @{{.Account.Acct}} </span> |
110 |
</a> |
111 |
<span class="notification-text"> {{.Type}} - |
112 |
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> |
113 |
</span> |
114 |
</div> |
115 |
{{if .Status}}{{template "status" (WithContext .Status $.Ctx)}}{{end}} |
116 |
{{end}} |
117 |
</div> |
118 |
{{end}} |
119 |
|
120 |
<div class="pagination"> |
121 |
{{if .NextLink}} |
122 |
<a href="{{.NextLink}}" target="_self">[sekva]</a> |
123 |
{{end}} |
124 |
</div> |
125 |
|
126 |
{{template "footer.tmpl"}} |
127 |
{{end}} |