2019-12-25 16:38:47 +00:00
|
|
|
{{template "header.tmpl" .HeaderData}}
|
2019-12-15 17:37:58 +00:00
|
|
|
{{template "navigation.tmpl" .NavbarData}}
|
|
|
|
<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 03:43:25 +00: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 17:37:58 +00:00
|
|
|
<div>
|
2020-01-01 09:40:47 +00:00
|
|
|
<div class="notification-info-text">
|
2019-12-21 05:48:06 +00:00
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
2020-01-01 09:40:47 +00:00
|
|
|
<img class="icon" src="/static/icons/user-plus.png" alt="followed" />
|
|
|
|
<span> followed you </span>
|
2019-12-15 17:37:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="notification-follow-uname">
|
|
|
|
@{{.Account.Acct}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{else if eq .Type "mention"}}
|
|
|
|
{{template "status" .Status}}
|
|
|
|
|
|
|
|
{{else if eq .Type "reblog"}}
|
|
|
|
<div class="notification-retweet-container">
|
2019-12-22 03:43:25 +00: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 17:37:58 +00:00
|
|
|
<div>
|
2020-01-01 09:40:47 +00:00
|
|
|
<div class="notification-info-text">
|
2019-12-21 05:48:06 +00:00
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
2020-01-01 09:40:47 +00:00
|
|
|
<img class="icon" src="/static/icons/retweeted.png" alt="retweeted" />
|
|
|
|
<span> retweeted your post </span>
|
2019-12-15 17:37:58 +00:00
|
|
|
</div>
|
|
|
|
{{template "status" .Status}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{else if eq .Type "favourite"}}
|
|
|
|
<div class="notification-like-container">
|
2019-12-22 03:43:25 +00: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 17:37:58 +00:00
|
|
|
<div>
|
2020-01-01 09:40:47 +00:00
|
|
|
<div class="notification-info-text">
|
2019-12-21 05:48:06 +00:00
|
|
|
<span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
|
2020-01-01 09:40:47 +00:00
|
|
|
<img class="icon" src="/static/icons/liked.png" alt="liked" />
|
|
|
|
<span> liked your post </span>
|
2019-12-15 17:37:58 +00:00
|
|
|
</div>
|
|
|
|
{{template "status" .Status}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{{if .HasNext}}
|
|
|
|
<a href="{{.NextLink}}">next</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{template "footer.tmpl"}}
|