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/user.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'templates/user.tmpl') diff --git a/templates/user.tmpl b/templates/user.tmpl index 60536bb..bbbce32 100644 --- a/templates/user.tmpl +++ b/templates/user.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)}}
User
@@ -14,7 +15,7 @@ {{EmojiFilter .User.DisplayName .User.Emojis}} {{.User.Acct}} - link + link
@@ -48,7 +49,7 @@
{{range .Statuses}} -{{template "status.tmpl" .}} +{{template "status.tmpl" (WithContext . $.Ctx)}} {{end}} {{template "footer.tmpl"}} - +{{end}} -- cgit v1.2.3