2020-01-14 18:57:16 +02:00
|
|
|
{{with .Data}}
|
2020-02-19 00:15:37 +02:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
|
|
|
<div class="notification-title-container">
|
|
|
|
<div class="notification-title">
|
|
|
|
Notifications
|
2020-09-02 20:50:48 +03:00
|
|
|
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}}
|
|
|
|
({{.UnreadCount }})
|
|
|
|
{{end}}
|
2020-02-19 00:15:37 +02:00
|
|
|
</div>
|
2020-02-23 15:26:39 +02:00
|
|
|
<a class="notification-refresh" href="/notifications" target="_self">refresh</a>
|
2020-02-19 00:15:37 +02:00
|
|
|
{{if .ReadID}}
|
2020-02-23 15:26:39 +02:00
|
|
|
<form action="/notifications/read?max_id={{.ReadID}}" method="post" target="_self">
|
2020-02-19 00:15:37 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="read" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-12-15 19:37:58 +02:00
|
|
|
|
|
|
|
{{range .Notifications}}
|
|
|
|
<div class="notification-container {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
|
|
|
|
{{if eq .Type "follow"}}
|
|
|
|
<div class="notification-follow-container">
|
2019-12-22 05:43:25 +02:00
|
|
|
<div class="status-profile-img-container">
|
2020-02-23 15:26:39 +02:00
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}">
|
2020-08-22 09:45:40 +03:00
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="{{.Account.Acct}}" alt="profile-avatar" />
|
2019-12-22 05:43:25 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2019-12-15 19:37:58 +02:00
|
|
|
<div>
|
2020-01-01 11:40:47 +02:00
|
|
|
<div class="notification-info-text">
|
2019-12-21 07:48:06 +02:00
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
2020-01-01 11:40:47 +02:00
|
|
|
<span> followed you </span>
|
2020-01-29 20:14:27 +02:00
|
|
|
<span>
|
|
|
|
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
|
|
|
|
</span>
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
|
|
|
<div class="notification-follow-uname">
|
|
|
|
@{{.Account.Acct}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{else if eq .Type "mention"}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{template "status" (WithContext .Status $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
|
|
|
|
{{else if eq .Type "reblog"}}
|
2020-01-29 20:14:27 +02:00
|
|
|
<div class="retweet-info">
|
2020-02-23 15:26:39 +02:00
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}">
|
2020-08-22 09:45:40 +03:00
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="{{.Account.Acct}}" alt="avatar" />
|
2020-01-29 20:14:27 +02:00
|
|
|
</a>
|
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
|
|
|
<span> retweeted your post </span>
|
|
|
|
<span>
|
|
|
|
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
|
|
|
|
</span>
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
2020-01-29 20:14:27 +02:00
|
|
|
{{template "status" (WithContext .Status $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
|
|
|
|
{{else if eq .Type "favourite"}}
|
2020-01-29 20:14:27 +02:00
|
|
|
<div class="retweet-info">
|
2020-02-23 15:26:39 +02:00
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}">
|
2020-08-22 09:45:40 +03:00
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="{{.Account.Acct}}" alt="avatar" />
|
2020-01-29 20:14:27 +02:00
|
|
|
</a>
|
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
|
|
|
<span> liked your post </span>
|
|
|
|
<span>
|
|
|
|
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
|
|
|
|
</span>
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
2020-01-29 20:14:27 +02:00
|
|
|
{{template "status" (WithContext .Status $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="pagination">
|
2020-01-28 19:51:00 +02:00
|
|
|
{{if .NextLink}}
|
2020-02-23 15:26:39 +02:00
|
|
|
<a href="{{.NextLink}}" target="_self">next</a>
|
2019-12-15 19:37:58 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2020-01-14 18:57:16 +02:00
|
|
|
|
2019-12-15 19:37:58 +02:00
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{end}}
|