From f93fe3276607039a5d09fa83b17c8f353b19ce86 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 29 Jan 2020 18:14:27 +0000 Subject: Update notification layout --- templates/notification.tmpl | 53 +++++++++++++++++++++------------------------ templates/status.tmpl | 4 ---- 2 files changed, 25 insertions(+), 32 deletions(-) (limited to 'templates') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 7d0e67c..cc7a4a1 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -17,6 +17,9 @@ {{EmojiFilter .Account.DisplayName .Account.Emojis}} followed followed you + + - +
@{{.Account.Acct}} @@ -28,38 +31,32 @@ {{template "status" (WithContext .Status $.Ctx)}} {{else if eq .Type "reblog"}} -
-
- - profile-avatar - -
-
-
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} - retweeted - retweeted your post -
- {{template "status" (WithContext .Status $.Ctx)}} -
+
+ + avatar + + {{EmojiFilter .Account.DisplayName .Account.Emojis}} + retweeted + retweeted your post + + - +
+ {{template "status" (WithContext .Status $.Ctx)}} {{else if eq .Type "favourite"}} -
-
- - profile-avatar - -
-
-
- {{EmojiFilter .Account.DisplayName .Account.Emojis}} - liked - liked your post -
- {{template "status" (WithContext .Status $.Ctx)}} -
+
+ + avatar + + {{EmojiFilter .Account.DisplayName .Account.Emojis}} + liked + liked your post + + - +
+ {{template "status" (WithContext .Status $.Ctx)}} {{end}}
{{end}} diff --git a/templates/status.tmpl b/templates/status.tmpl index fd5339a..a6b28fa 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -14,15 +14,12 @@ {{block "status" (WithContext . $.Ctx)}} {{with $s := .Data}}
- {{if not .HideAccountInfo}} - {{end}}
- {{if not .HideAccountInfo}}
{{EmojiFilter .Account.DisplayName .Account.Emojis}} @@ -43,7 +40,6 @@ source
- {{end}}
{{if .InReplyToID}}
-- cgit v1.2.3