From 4a1653c5e8339e25b511e7a4224d46743e110c3f Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 6 Oct 2025 17:38:00 +0100 Subject: [PATCH] appview: improve logged-out CTAs Signed-off-by: oppiliappan --- appview/pages/templates/repo/fragments/labelPanel.html | 2 +- .../pages/templates/repo/fragments/participants.html | 2 +- .../templates/repo/issues/fragments/newComment.html | 9 +++++++-- appview/pages/templates/repo/pulls/pull.html | 10 +++++++--- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/appview/pages/templates/repo/fragments/labelPanel.html b/appview/pages/templates/repo/fragments/labelPanel.html index e735d186..be10f309 100644 --- a/appview/pages/templates/repo/fragments/labelPanel.html +++ b/appview/pages/templates/repo/fragments/labelPanel.html @@ -1,5 +1,5 @@ {{ define "repo/fragments/labelPanel" }} -
+
{{ template "basicLabels" . }} {{ template "kvLabels" . }}
diff --git a/appview/pages/templates/repo/fragments/participants.html b/appview/pages/templates/repo/fragments/participants.html index 7539cca9..eeb50994 100644 --- a/appview/pages/templates/repo/fragments/participants.html +++ b/appview/pages/templates/repo/fragments/participants.html @@ -1,7 +1,7 @@ {{ define "repo/fragments/participants" }} {{ $all := . }} {{ $ps := take $all 5 }} -
+
Participants {{ len $all }} diff --git a/appview/pages/templates/repo/issues/fragments/newComment.html b/appview/pages/templates/repo/issues/fragments/newComment.html index a704749c..f2a50311 100644 --- a/appview/pages/templates/repo/issues/fragments/newComment.html +++ b/appview/pages/templates/repo/issues/fragments/newComment.html @@ -138,8 +138,13 @@
{{ else }} -
- login to join the discussion +
+ + sign up + + or + login + to add to the discussion
{{ end }} {{ end }} diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html index 7873be1d..ac207223 100644 --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -189,9 +189,13 @@ {{ if $.LoggedInUser }} {{ template "repo/pulls/fragments/pullActions" (dict "LoggedInUser" $.LoggedInUser "Pull" $.Pull "RepoInfo" $.RepoInfo "RoundNumber" .RoundNumber "MergeCheck" $.MergeCheck "ResubmitCheck" $.ResubmitCheck "Stack" $.Stack) }} {{ else }} -
-
- login to join the discussion +
+ + sign up + + or + login + to add to the discussion
{{ end }}
-- 2.51.2