From 55987a4c1bd7364eba7438e7326a76a9a550b668 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 14 Jan 2020 16:57:16 +0000 Subject: Refactor renderer and templates --- templates/notification.tmpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'templates/notification.tmpl') diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 79d6d90..86134ac 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -1,5 +1,6 @@ -{{template "header.tmpl" .HeaderData}} -{{template "navigation.tmpl" .NavbarData}} +{{with .Data}} +{{template "header.tmpl" (WithContext .HeaderData $.Ctx)}} +{{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
Notifications
{{range .Notifications}} @@ -14,7 +15,7 @@
{{EmojiFilter .Account.DisplayName .Account.Emojis}} - followed + followed followed you
@@ -24,7 +25,7 @@
{{else if eq .Type "mention"}} - {{template "status" .Status}} + {{template "status" (WithContext .Status $.Ctx)}} {{else if eq .Type "reblog"}}
@@ -36,10 +37,10 @@
{{EmojiFilter .Account.DisplayName .Account.Emojis}} - retweeted + retweeted retweeted your post
- {{template "status" .Status}} + {{template "status" (WithContext .Status $.Ctx)}}
@@ -53,10 +54,10 @@
{{EmojiFilter .Account.DisplayName .Account.Emojis}} - liked + liked liked your post
- {{template "status" .Status}} + {{template "status" (WithContext .Status $.Ctx)}}
{{end}} @@ -68,4 +69,6 @@ next {{end}} + {{template "footer.tmpl"}} +{{end}} -- cgit v1.2.3