From b35d62ecbb96b6d5f83b0453ca16e8dc45b39657 Mon Sep 17 00:00:00 2001 From: r Date: Sat, 28 Nov 2020 12:58:18 +0000 Subject: Fix RTL display name rendering Wrap all the inline display names in a tag --- templates/notification.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 10eaafc..3977aa7 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -27,7 +27,7 @@
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} + {{EmojiFilter .Account.DisplayName .Account.Emojis}} followed you - -- cgit v1.2.3 From 91f68ccfb391ee53bfc36f4877ca8d8f63c8faf2 Mon Sep 17 00:00:00 2001 From: r Date: Sat, 16 Jan 2021 09:10:02 +0000 Subject: Add follow request support --- templates/notification.tmpl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 3977aa7..5563425 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -38,6 +38,35 @@
+ {{else if eq .Type "follow_request"}} +
+
+ + profile-avatar + +
+
+
+ {{EmojiFilter .Account.DisplayName .Account.Emojis}} + wants to follow you - + + +
+
+ @{{.Account.Acct}} +
+
+ + +
+ - +
+ + +
+
+
+ {{else if eq .Type "mention"}} {{template "status" (WithContext .Status $.Ctx)}} -- cgit v1.2.3 From e7d24cfa8018a45dbd4ad27ef7a4981035c98ece Mon Sep 17 00:00:00 2001 From: r Date: Sat, 16 Jan 2021 09:26:59 +0000 Subject: Add fallback notification --- templates/notification.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 5563425..61353f5 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -97,6 +97,20 @@ {{template "status" (WithContext .Status $.Ctx)}} + + {{else}} +
+ + avatar + + + @{{.Account.Acct}} + + {{.Type}} - + + +
+ {{if .Status}}{{template "status" (WithContext .Status $.Ctx)}}{{end}} {{end}} {{end}} -- cgit v1.2.3 From 87e31dbd6688f8e4492d3dc17783c26f2d926e4b Mon Sep 17 00:00:00 2001 From: r Date: Sat, 16 Jan 2021 10:25:34 +0000 Subject: Make like/retweet notification content semi-transparent --- templates/notification.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 61353f5..567bcf0 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -17,7 +17,7 @@ {{range .Notifications}} -
+
{{if eq .Type "follow"}}
-- cgit v1.2.3 From f4620a8c69a71a4e99ed4e51346ec630f7c3aee2 Mon Sep 17 00:00:00 2001 From: r Date: Sun, 17 Jan 2021 05:44:07 +0000 Subject: Make redirection work without Referer header --- templates/notification.tmpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 567bcf0..4eed61b 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -11,6 +11,7 @@ {{if .ReadID}}
+
{{end}} @@ -57,11 +58,13 @@
+
-
+
-- cgit v1.2.3