From 6fde9533d6be1fd1fc8085acacaaaa171b2a1aa3 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 18 Aug 2023 08:54:56 +0100 Subject: [PATCH] cmd/web/tmpl: Also conditionally render for showpaste template --- cmd/web/tmpl/showpaste.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/web/tmpl/showpaste.html b/cmd/web/tmpl/showpaste.html index 5f8f6f1..6da3b7d 100644 --- a/cmd/web/tmpl/showpaste.html +++ b/cmd/web/tmpl/showpaste.html @@ -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}}