From 9db2fd41c16f2d3603063ab69e8d24fadc02c0cb Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 18 Jan 2026 22:52:49 +0200 Subject: [PATCH] appview/pages: show login/signup CTA in pulls submissions only once Signed-off-by: Anirudh Oppiliappan --- appview/pages/templates/repo/pulls/pull.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html index fdef36f9..f3993b9e 100644 --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -203,6 +203,9 @@ {{ define "submissions" }} {{ $lastIdx := sub (len .Pull.Submissions) 1 }} + {{ if not .LoggedInUser }} + {{ template "loginPrompt" $ }} + {{ end }} {{ range $ridx, $item := reverse .Pull.Submissions }} {{ $idx := sub $lastIdx $ridx }} {{ template "submission" (list $item $idx $lastIdx $) }} @@ -234,8 +237,6 @@ "ResubmitCheck" $root.ResubmitCheck "BranchDeleteStatus" $root.BranchDeleteStatus "Stack" $root.Stack) }} - {{ else }} - {{ template "loginPrompt" $ }} {{ end }} {{ end }} @@ -279,7 +280,7 @@ - {{ template "repo/fragments/shortTimeAgo" $item.Created }} + {{ template "repo/fragments/shortTime" $item.Created }}
-- 2.51.2