From 1d61f1aa27376e778b7a517fdd5739a8c1976d2e Mon Sep 17 00:00:00 2001 From: r Date: Thu, 28 Dec 2023 13:27:30 +0000 Subject: Update the default theme This uses better color contrast and component spacing to improve legibility. The updated HTML also has better compatibility with browsers with limited/no CSS support. --- templates/notification.tmpl | 122 ++++++++++++++++++++------------------------ 1 file changed, 56 insertions(+), 66 deletions(-) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index f1336d3..395987e 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -1,73 +1,66 @@ {{with .Data}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} -
- - Notifications - {{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}} + +
+ + +

Notifications + {{- if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}} ({{.UnreadCount }}) {{end}} - - refresh - {{if .ReadID}} - - - - - - {{end}} -

+ refresh + {{if .ReadID}} + + {{end}} + + {{range .Notifications}} -
+
{{if eq .Type "follow"}} -
-
+
+ -
-
- {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} - followed you - - - -
- +
+ {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + followed you - +
+ @{{.Account.Acct}}
+
{{else if eq .Type "follow_request"}} -
-
+
+ -
-
- {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} - wants to follow you - - - -
-
- @{{.Account.Acct}} +
+ {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + wants to follow you - + +
+ @{{.Account.Acct}} + -
- - - -
- - -
- - - -
+
{{else if eq .Type "mention"}} @@ -76,11 +69,10 @@ {{else if eq .Type "reblog"}}
- avatar - - - @{{.Account.Acct}} + @{{.Account.Acct}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + @{{.Account.Acct}} retweeted your post - @@ -90,11 +82,10 @@ {{else if eq .Type "favourite"}}
- avatar - - - @{{.Account.Acct}} + @{{.Account.Acct}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + @{{.Account.Acct}} liked your post - @@ -104,25 +95,24 @@ {{else}}
- avatar - - - @{{.Account.Acct}} + @{{.Account.Acct}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + @{{.Account.Acct}} {{.Type}} -
{{if .Status}}{{template "status" (WithContext .Status $.Ctx)}}{{end}} {{end}} -
+
{{end}} - + {{template "footer.tmpl"}} {{end}} -- cgit v1.2.3