From b0675e9f56bb386ad686d1bd0f984ff36f971aa7 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 18 Aug 2023 08:54:56 +0100 Subject: [PATCH] Also conditionally render for showpaste template --- cmd/web/tmpl/showpaste.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/web/tmpl/showpaste.tmpl b/cmd/web/tmpl/showpaste.tmpl index 366bf7f..c5187bd 100644 --- a/cmd/web/tmpl/showpaste.tmpl +++ b/cmd/web/tmpl/showpaste.tmpl @@ -4,10 +4,10 @@ {{if .UserInfo}} {{if ne .PasterUserID .UserID}} -
{{.PasterDisplayName}}
+
{{.PasterDisplayName}} {{if .PasterProfilePicURL}}{{end}}
{{end}} {{else}} -
{{.PasterDisplayName}}
+
{{.PasterDisplayName}} {{if .PasterProfilePicURL}}{{end}}
{{end}}

Created at {{.CreatedAt}}

-- 2.46.0