2020-01-14 18:57:16 +02:00
|
|
|
{{with .Data}}
|
|
|
|
{{template "header.tmpl" (WithContext .HeaderData $.Ctx)}}
|
|
|
|
{{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
<div class="page-title"> Notifications </div>
|
|
|
|
|
|
|
|
{{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">
|
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}" >
|
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
|
|
|
|
</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-14 18:57:16 +02:00
|
|
|
<img class="icon" src="{{GetIcon "user-plus" $.Ctx.DarkMode}}" alt="followed" />
|
2020-01-01 11:40:47 +02:00
|
|
|
<span> followed you </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"}}
|
|
|
|
<div class="notification-retweet-container">
|
2019-12-22 05:43:25 +02:00
|
|
|
<div class="status-profile-img-container">
|
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}" >
|
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
|
|
|
|
</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-14 18:57:16 +02:00
|
|
|
<img class="icon" src="{{GetIcon "retweeted" $.Ctx.DarkMode}}" alt="retweeted" />
|
2020-01-01 11:40:47 +02:00
|
|
|
<span> retweeted your post </span>
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
2020-01-14 18:57:16 +02:00
|
|
|
{{template "status" (WithContext .Status $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{else if eq .Type "favourite"}}
|
|
|
|
<div class="notification-like-container">
|
2019-12-22 05:43:25 +02:00
|
|
|
<div class="status-profile-img-container">
|
|
|
|
<a class="img-link" href="/user/{{.Account.ID}}" >
|
|
|
|
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
|
|
|
|
</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-14 18:57:16 +02:00
|
|
|
<img class="icon" src="{{GetIcon "liked" $.Ctx.DarkMode}}" alt="liked" />
|
2020-01-01 11:40:47 +02:00
|
|
|
<span> liked your post </span>
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
2020-01-14 18:57:16 +02:00
|
|
|
{{template "status" (WithContext .Status $.Ctx)}}
|
2019-12-15 19:37:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="pagination">
|
2020-01-28 19:51:00 +02:00
|
|
|
{{if .NextLink}}
|
2019-12-15 19:37:58 +02:00
|
|
|
<a href="{{.NextLink}}">next</a>
|
|
|
|
{{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}}
|