diff options
author | r <r@freesoftwareextremist.com> | 2019-12-15 17:37:58 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-15 17:37:58 +0000 |
commit | f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f (patch) | |
tree | 301e89bb8ebb56b9756fe322eb9ad953bac2661e /templates/notification.tmpl | |
parent | 51a4b16af518fde883df50f7f627fda21c18065e (diff) | |
download | bloat-f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f.tar.gz bloat-f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f.zip |
Add notification support
Diffstat (limited to 'templates/notification.tmpl')
-rw-r--r-- | templates/notification.tmpl | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/notification.tmpl b/templates/notification.tmpl new file mode 100644 index 0000000..099f17e --- /dev/null +++ b/templates/notification.tmpl @@ -0,0 +1,59 @@ +{{template "header.tmpl"}} +{{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"> + <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> + <div> + <div> + <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span> + <span class="icon dripicons-user-group"></span> + followed you + </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"> + <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> + <div> + <div> + <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span> + <span class="icon dripicons-retweet retweeted"></span> + retweeted your post + </div> + {{template "status" .Status}} + </div> + </div> + + {{else if eq .Type "favourite"}} + <div class="notification-like-container"> + <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> + <div> + <div> + <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span> + <span class="icon dripicons-star liked"></span> + liked your post + </div> + {{template "status" .Status}} + </div> + </div> + {{end}} +</div> +{{end}} + +<div class="pagination"> + {{if .HasNext}} + <a href="{{.NextLink}}">next</a> + {{end}} +</div> +{{template "footer.tmpl"}} |