Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2

appview/pages: show login/signup CTA in pulls submissions only once

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

anirudh.fi 1abafd05 904c3497

verified
+4 -3
+4 -3
appview/pages/templates/repo/pulls/pull.html
··· 203 203 204 204 {{ define "submissions" }} 205 205 {{ $lastIdx := sub (len .Pull.Submissions) 1 }} 206 + {{ if not .LoggedInUser }} 207 + {{ template "loginPrompt" $ }} 208 + {{ end }} 206 209 {{ range $ridx, $item := reverse .Pull.Submissions }} 207 210 {{ $idx := sub $lastIdx $ridx }} 208 211 {{ template "submission" (list $item $idx $lastIdx $) }} ··· 237 234 "ResubmitCheck" $root.ResubmitCheck 238 235 "BranchDeleteStatus" $root.BranchDeleteStatus 239 236 "Stack" $root.Stack) }} 240 - {{ else }} 241 - {{ template "loginPrompt" $ }} 242 237 {{ end }} 243 238 </div> 244 239 {{ end }} ··· 280 279 </span> 281 280 <span class="select-none before:content-['\00B7']"></span> 282 281 <a class="text-gray-500 dark:text-gray-400 hover:text-gray-500" href="#round-#{{ $round }}"> 283 - {{ template "repo/fragments/shortTimeAgo" $item.Created }} 282 + {{ template "repo/fragments/shortTime" $item.Created }} 284 283 </a> 285 284 </span> 286 285 <div class="flex gap-2 items-center">