aboutsummaryrefslogtreecommitdiff
path: root/templates/notification.tmpl
blob: e46ce8abd1279dd73986cc374cf57cd9e1507410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{{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">
		<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>
		<div>
			<div>
				<span class="status-dname"> {{EmojiFilter .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">
		<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>
		<div>
			<div>
				<span class="status-dname"> {{EmojiFilter .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">
		<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>
		<div>
			<div>
				<span class="status-dname"> {{EmojiFilter .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"}}