A vibe coded tangled fork which supports pijul.
1{{ define "title" }}
2 {{ .Pull.Title }} · pull #{{ .Pull.PullId }} · {{ .RepoInfo.FullName }}
3{{ end }}
4
5{{ define "extrameta" }}
6 {{ template "repo/pulls/fragments/og" (dict "RepoInfo" .RepoInfo "Pull" .Pull) }}
7{{ end }}
8
9{{ define "mainLayout" }}
10 <div class="px-1 flex-grow flex flex-col gap-4">
11 <div class="max-w-screen-lg mx-auto">
12 {{ block "contentLayout" . }}
13 {{ block "content" . }}{{ end }}
14 {{ end }}
15 </div>
16 {{ block "contentAfterLayout" . }}
17 <main>
18 {{ block "contentAfter" . }}{{ end }}
19 </main>
20 {{ end }}
21 </div>
22 <script>
23 (function() {
24 const details = document.getElementById('bottomSheet');
25 const isDesktop = () => window.matchMedia('(min-width: 768px)').matches;
26
27 // close on mobile initially
28 if (!isDesktop()) {
29 details.open = false;
30 }
31
32 // prevent closing on desktop
33 details.addEventListener('toggle', function(e) {
34 if (isDesktop() && !this.open) {
35 this.open = true;
36 }
37 });
38
39 const mediaQuery = window.matchMedia('(min-width: 768px)');
40 mediaQuery.addEventListener('change', function(e) {
41 if (e.matches) {
42 // switched to desktop - keep open
43 details.open = true;
44 } else {
45 // switched to mobile - close
46 details.open = false;
47 }
48 });
49 })();
50 </script>
51{{ end }}
52
53{{ define "repoContentLayout" }}
54 <div class="grid grid-cols-1 md:grid-cols-10 gap-4">
55 <section class="bg-white col-span-1 md:col-span-8 dark:bg-gray-800 p-6 rounded relative w-full mx-auto dark:text-white h-full flex-shrink">
56 {{ block "repoContent" . }}{{ end }}
57 </section>
58 <div class="flex flex-col gap-6 col-span-1 md:col-span-2">
59 {{ template "repo/fragments/labelPanel"
60 (dict "RepoInfo" $.RepoInfo
61 "Defs" $.LabelDefs
62 "Subject" $.Pull.AtUri
63 "State" $.Pull.Labels) }}
64 {{ template "repo/fragments/participants" $.Pull.Participants }}
65 {{ template "repo/fragments/backlinks"
66 (dict "RepoInfo" $.RepoInfo
67 "Backlinks" $.Backlinks) }}
68 {{ template "repo/fragments/externalLinkPanel" $.Pull.AtUri }}
69 </div>
70 </div>
71{{ end }}
72
73{{ define "contentAfter" }}
74 {{ template "repo/fragments/diff" (list .Diff .DiffOpts $) }}
75{{ end }}
76
77{{ define "repoContent" }}
78 {{ template "repo/pulls/fragments/pullHeader" . }}
79 {{ if .Pull.IsStacked }}
80 <div class="mt-8">
81 {{ template "repo/pulls/fragments/pullStack" . }}
82 </div>
83 {{ end }}
84{{ end }}
85
86{{ define "diffLayout" }}
87 {{ $diff := index . 0 }}
88 {{ $opts := index . 1 }}
89 {{ $root := index . 2 }}
90
91 <div class="flex col-span-full">
92 <!-- left panel -->
93 <div id="files" class="w-0 hidden md:block overflow-hidden sticky top-12 max-h-screen overflow-y-auto pb-12">
94 <section class="overflow-x-auto text-sm px-6 py-2 border-b border-x border-gray-200 dark:border-gray-700 w-full mx-auto min-h-full rounded-b rounded-t-none bg-white dark:bg-gray-800 drop-shadow-sm">
95 {{ template "repo/fragments/fileTree" $diff.FileTree }}
96 </section>
97 </div>
98
99 <!-- main content -->
100 <div class="flex-1 min-w-0 sticky top-12 pb-12">
101 {{ template "diffFiles" (list $diff $opts) }}
102 </div>
103
104 <!-- right panel -->
105 {{ template "subsPanel" $ }}
106 </div>
107{{ end }}
108
109{{ define "subsPanel" }}
110 {{ $root := index . 2 }}
111 {{ $pull := $root.Pull }}
112
113 <!-- backdrop overlay - only visible on mobile when open -->
114 <div class="
115 fixed inset-0 bg-black/50 z-50 md:hidden opacity-0
116 pointer-events-none transition-opacity duration-300
117 has-[~#subs_details[open]]:opacity-100 has-[~#subs_details[open]]:pointer-events-auto">
118 </div>
119 <!-- right panel - bottom sheet on mobile, side panel on desktop -->
120 <div id="subs" class="fixed bottom-0 left-0 right-0 z-50 w-full md:static md:z-auto md:max-h-screen md:sticky md:top-12 overflow-hidden">
121 <details open id="bottomSheet" class="group rounded-t-2xl md:rounded-t drop-shadow-lg md:drop-shadow-none">
122 <summary class="
123 flex gap-4 items-center justify-between
124 rounded-t-2xl md:rounded-t cursor-pointer list-none p-4 md:h-12
125 text-white md:text-black md:dark:text-white
126 bg-green-600 dark:bg-green-700
127 md:bg-white md:dark:bg-gray-800
128 drop-shadow-sm
129 border-t md:border-x md:border-t-0 border-gray-200 dark:border-gray-700">
130 <h2 class="">Submissions</h2>
131 {{ template "subsPanelSummary" $ }}
132 </summary>
133 <div class="max-h-[85vh] md:max-h-[calc(100vh-3rem-3rem)] w-full flex flex-col-reverse gap-4 overflow-y-auto bg-slate-100 dark:bg-gray-900 md:bg-transparent">
134 {{ template "submissions" $root }}
135 </div>
136 </details>
137 </div>
138{{ end }}
139
140{{ define "subsPanelSummary" }}
141 {{ $root := index . 2 }}
142 {{ $pull := $root.Pull }}
143 {{ $latest := $pull.LastRoundNumber }}
144 <div class="flex items-center gap-2 text-sm">
145 <!--{{ if $root.IsInterdiff }}
146 <span>
147 viewing interdiff of
148 <span class="font-mono">#{{ $root.ActiveRound }}</span>
149 and
150 <span class="font-mono">#{{ sub $root.ActiveRound 1 }}</span>
151 </span>
152 {{ else }}
153 {{ if ne $root.ActiveRound $latest }}
154 <span>(outdated)</span>
155 <span class="before:content-['·']"></span>
156 <a class="underline" href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $root.Pull.PullId }}/round/{{ $latest }}?{{ safeUrl $root.DiffOpts.Encode }}">
157 view latest
158 </a>
159 {{ end }}
160 {{ end }}-->
161 <span class="md:hidden inline">
162 <span class="inline group-open:hidden">{{ i "chevron-up" "size-4" }}</span>
163 <span class="hidden group-open:inline">{{ i "chevron-down" "size-4" }}</span>
164 </span>
165 </div>
166{{ end }}
167
168{{ define "subsCheckbox" }}
169 <input type="checkbox" id="subsToggle" class="peer/subs hidden" checked/>
170{{ end }}
171
172{{ define "subsToggle" }}
173 <style>
174 /* Mobile: full width */
175 #subsToggle:checked ~ div div#subs {
176 width: 100%;
177 margin-left: 0;
178 }
179 #subsToggle:checked ~ div label[for="subsToggle"] .show-toggle { display: none; }
180 #subsToggle:checked ~ div label[for="subsToggle"] .hide-toggle { display: flex; }
181 #subsToggle:not(:checked) ~ div label[for="subsToggle"] .hide-toggle { display: none; }
182
183 /* Desktop: 25vw with left margin */
184 @media (min-width: 768px) {
185 #subsToggle:checked ~ div div#subs {
186 width: 25vw;
187 margin-left: 1rem;
188 }
189 /* Unchecked state */
190 #subsToggle:not(:checked) ~ div div#subs {
191 width: 0;
192 display: none;
193 margin-left: 0;
194 }
195 }
196 </style>
197 <label title="Toggle review panel" for="subsToggle" class="hidden md:flex items-center justify-end rounded cursor-pointer">
198 <span class="show-toggle">{{ i "message-square-more" "size-4" }}</span>
199 <span class="hide-toggle w-[25vw] flex justify-end">{{ i "message-square" "size-4" }}</span>
200 </label>
201{{ end }}
202
203
204{{ define "submissions" }}
205 {{ $lastIdx := sub (len .Pull.Submissions) 1 }}
206 {{ range $ridx, $item := reverse .Pull.Submissions }}
207 {{ $idx := sub $lastIdx $ridx }}
208 {{ template "submission" (list $item $idx $lastIdx $) }}
209 {{ end }}
210{{ end }}
211
212{{ define "submission" }}
213 {{ $item := index . 0 }}
214 {{ $idx := index . 1 }}
215 {{ $lastIdx := index . 2 }}
216 {{ $root := index . 3 }}
217 <div class="{{ if eq $item.RoundNumber 0 }}rounded-b border-t-0{{ else }}rounded{{ end }} border border-gray-200 dark:border-gray-700 w-full shadow-sm bg-gray-50 dark:bg-gray-800/50">
218 {{ template "submissionHeader" $ }}
219 {{ template "submissionComments" $ }}
220
221 {{ if eq $lastIdx $item.RoundNumber }}
222 {{ block "mergeStatus" $root }} {{ end }}
223 {{ block "resubmitStatus" $root }} {{ end }}
224 {{ end }}
225
226 {{ if $root.LoggedInUser }}
227 {{ template "repo/pulls/fragments/pullActions"
228 (dict
229 "LoggedInUser" $root.LoggedInUser
230 "Pull" $root.Pull
231 "RepoInfo" $root.RepoInfo
232 "RoundNumber" $item.RoundNumber
233 "MergeCheck" $root.MergeCheck
234 "ResubmitCheck" $root.ResubmitCheck
235 "BranchDeleteStatus" $root.BranchDeleteStatus
236 "Stack" $root.Stack) }}
237 {{ else }}
238 {{ template "loginPrompt" $ }}
239 {{ end }}
240 </div>
241{{ end }}
242
243{{ define "submissionHeader" }}
244 {{ $item := index . 0 }}
245 {{ $lastIdx := index . 2 }}
246 {{ $root := index . 3 }}
247 {{ $round := $item.RoundNumber }}
248 <div class="{{ if eq $round 0 }}rounded-b{{ else }}rounded{{ end }} px-6 py-4 pr-2 pt-2 {{ if eq $root.ActiveRound $round }}bg-blue-100 dark:bg-blue-900/50 border-b border-blue-200 dark:border-blue-700{{ else }}bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700{{ end }} flex gap-2 sticky top-0 z-20">
249 <!-- left column: just profile picture -->
250 <div class="flex-shrink-0 pt-2">
251 <img
252 src="{{ tinyAvatar $root.Pull.OwnerDid }}"
253 alt=""
254 class="rounded-full size-8 mr-1 border-2 border-gray-100 dark:border-gray-900"
255 />
256 </div>
257 <!-- right column -->
258 <div class="flex-1 min-w-0 flex flex-col gap-1">
259 {{ template "submissionInfo" $ }}
260 {{ template "submissionCommits" $ }}
261 {{ template "submissionPipeline" $ }}
262 {{ if eq $lastIdx $round }}
263 {{ block "mergeCheck" $root }} {{ end }}
264 {{ end }}
265 </div>
266 </div>
267{{ end }}
268
269{{ define "submissionInfo" }}
270 {{ $item := index . 0 }}
271 {{ $idx := index . 1 }}
272 {{ $root := index . 3 }}
273 {{ $round := $item.RoundNumber }}
274 <div class="flex gap-2 items-center justify-between mb-1">
275 <span class="inline-flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400 pt-2">
276 {{ resolve $root.Pull.OwnerDid }} submitted
277 <span class="px-2 py-0.5 {{ if eq $root.ActiveRound $round }}text-white bg-blue-600 dark:bg-blue-500 border-blue-700 dark:border-blue-600{{ else }}text-black dark:text-white bg-gray-100 dark:bg-gray-700 border-gray-300 dark:border-gray-600{{ end }} rounded font-mono text-xs border">
278 #{{ $round }}
279 </span>
280 <span class="select-none before:content-['\00B7']"></span>
281 <a class="text-gray-500 dark:text-gray-400 hover:text-gray-500" href="#round-#{{ $round }}">
282 {{ template "repo/fragments/shortTimeAgo" $item.Created }}
283 </a>
284 </span>
285 <div class="flex gap-2 items-center">
286 {{ if ne $root.ActiveRound $round }}
287 <a class="btn-flat flex items-center gap-2 no-underline hover:no-underline text-sm"
288 href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $root.Pull.PullId }}/round/{{ $round }}?{{ safeUrl $root.DiffOpts.Encode }}">
289 {{ i "diff" "w-4 h-4" }}
290 diff
291 </a>
292 {{ end }}
293 {{ if ne $idx 0 }}
294 <a class="btn-flat flex items-center gap-2 no-underline hover:no-underline text-sm"
295 href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $root.Pull.PullId }}/round/{{ $round }}/interdiff?{{ safeUrl $root.DiffOpts.Encode }}">
296 {{ i "chevrons-left-right-ellipsis" "w-4 h-4 rotate-90" }}
297 interdiff
298 </a>
299 {{ end }}
300 </div>
301 </div>
302{{ end }}
303
304{{ define "submissionCommits" }}
305 {{ $item := index . 0 }}
306 {{ $root := index . 3 }}
307 {{ $round := $item.RoundNumber }}
308 {{ $patches := $item.AsFormatPatch }}
309 {{ if $patches }}
310 <details class="group/commit">
311 <summary class="list-none cursor-pointer flex items-center gap-2">
312 <span>{{ i "git-commit-horizontal" "w-4 h-4" }}</span>
313 {{ len $patches }} commit{{ if ne (len $patches) 1 }}s{{ end }}
314 <div class="text-sm text-gray-500 dark:text-gray-400">
315 <span class="group-open/commit:hidden inline">expand</span>
316 <span class="hidden group-open/commit:inline">collapse</span>
317 </div>
318 </summary>
319 {{ range $patches }}
320 {{ template "submissionCommit" (list . $item $root) }}
321 {{ end }}
322 </details>
323 {{ end }}
324{{ end }}
325
326{{ define "submissionCommit" }}
327 {{ $patch := index . 0 }}
328 {{ $item := index . 1 }}
329 {{ $root := index . 2 }}
330 {{ $round := $item.RoundNumber }}
331 {{ with $patch }}
332 <div id="commit-{{.SHA}}" class="py-1 relative w-full md:max-w-3/5 md:w-fit flex flex-col text-gray-600 dark:text-gray-300">
333 <div class="flex items-baseline gap-2">
334 <div class="text-xs">
335 <!-- attempt to resolve $fullRepo: this is possible only on non-deleted forks and branches -->
336 {{ $fullRepo := "" }}
337 {{ if and $root.Pull.IsForkBased $root.Pull.PullSource.Repo }}
338 {{ $fullRepo = printf "%s/%s" $root.Pull.OwnerDid $root.Pull.PullSource.Repo.Name }}
339 {{ else if $root.Pull.IsBranchBased }}
340 {{ $fullRepo = $root.RepoInfo.FullName }}
341 {{ end }}
342
343 <!-- if $fullRepo was resolved, link to it, otherwise just span without a link -->
344 {{ if $fullRepo }}
345 <a href="/{{ $fullRepo }}/commit/{{ .SHA }}" class="font-mono text-gray-600 dark:text-gray-300">{{ slice .SHA 0 8 }}</a>
346 {{ else }}
347 <span class="font-mono">{{ slice .SHA 0 8 }}</span>
348 {{ end }}
349 </div>
350
351 <div>
352 <span>{{ .Title | description }}</span>
353 {{ if gt (len .Body) 0 }}
354 <button
355 class="py-1/2 px-1 mx-2 bg-gray-200 hover:bg-gray-400 rounded dark:bg-gray-700 dark:hover:bg-gray-600"
356 hx-on:click="document.getElementById('body-{{$round}}-{{.SHA}}').classList.toggle('hidden')"
357 >
358 {{ i "ellipsis" "w-3 h-3" }}
359 </button>
360 {{ end }}
361 {{ if gt (len .Body) 0 }}
362 <p id="body-{{$round}}-{{.SHA}}" class="hidden mt-1 pb-2">{{ nl2br .Body }}</p>
363 {{ end }}
364 </div>
365 </div>
366 </div>
367 {{ end }}
368{{ end }}
369
370{{ define "mergeCheck" }}
371 {{ $isOpen := .Pull.State.IsOpen }}
372 {{ if and $isOpen .MergeCheck .MergeCheck.Error }}
373 <div class="flex items-center gap-2">
374 {{ i "triangle-alert" "w-4 h-4 text-red-600 dark:text-red-500" }}
375 {{ .MergeCheck.Error }}
376 </div>
377 {{ else if and $isOpen .MergeCheck .MergeCheck.IsConflicted }}
378 <details class="group/conflict">
379 <summary class="flex items-center justify-between cursor-pointer list-none">
380 <div class="flex items-center gap-2 ">
381 {{ i "triangle-alert" "text-red-600 dark:text-red-500 w-4 h-4" }}
382 <span class="font-medium">merge conflicts detected</span>
383 <div class="text-sm text-gray-500 dark:text-gray-400">
384 <span class="group-open/conflict:hidden inline">expand</span>
385 <span class="hidden group-open/conflict:inline">collapse</span>
386 </div>
387 </div>
388 </summary>
389 {{ if gt (len .MergeCheck.Conflicts) 0 }}
390 <ul class="space-y-1 mt-2 overflow-x-auto">
391 {{ range .MergeCheck.Conflicts }}
392 {{ if .Filename }}
393 <li class="flex items-center whitespace-nowrap">
394 {{ i "file-warning" "inline-flex w-4 h-4 mr-1.5 text-red-600 dark:text-red-500 flex-shrink-0" }}
395 <span class="font-mono">{{ .Filename }}</span>
396 </li>
397 {{ else if .Reason }}
398 <li class="flex items-center whitespace-nowrap">
399 {{ i "file-warning" "w-4 h-4 mr-1.5 text-red-600 dark:text-red-500 " }}
400 <span>{{.Reason}}</span>
401 </li>
402 {{ end }}
403 {{ end }}
404 </ul>
405 {{ end }}
406 </details>
407 {{ else if and $isOpen .MergeCheck }}
408 <div class="flex items-center gap-2">
409 {{ i "check" "w-4 h-4 text-green-600 dark:text-green-500" }}
410 <span>no conflicts, ready to merge</span>
411 </div>
412 {{ end }}
413{{ end }}
414
415{{ define "mergeStatus" }}
416 {{ if .Pull.State.IsClosed }}
417 <div class="bg-gray-50 dark:bg-gray-700 border border-black dark:border-gray-500 rounded drop-shadow-sm px-6 py-2 relative">
418 <div class="flex items-center gap-2 text-black dark:text-white">
419 {{ i "ban" "w-4 h-4" }}
420 <span class="font-medium">closed without merging</span
421 >
422 </div>
423 </div>
424 {{ else if .Pull.State.IsMerged }}
425 <div class="bg-purple-50 dark:bg-purple-900 border border-purple-500 rounded drop-shadow-sm px-6 py-2 relative">
426 <div class="flex items-center gap-2 text-purple-500 dark:text-purple-300">
427 {{ i "git-merge" "w-4 h-4" }}
428 <span class="font-medium">pull request successfully merged</span
429 >
430 </div>
431 </div>
432 {{ else if .Pull.State.IsDeleted }}
433 <div class="bg-red-50 dark:bg-red-900 border border-red-500 rounded drop-shadow-sm px-6 py-2 relative">
434 <div class="flex items-center gap-2 text-red-500 dark:text-red-300">
435 {{ i "git-pull-request-closed" "w-4 h-4" }}
436 <span class="font-medium">This pull has been deleted (possibly by jj abandon or jj squash)</span>
437 </div>
438 </div>
439 {{ end }}
440{{ end }}
441
442{{ define "resubmitStatus" }}
443 {{ if .ResubmitCheck.Yes }}
444 <div class="bg-amber-50 dark:bg-amber-900 border border-amber-500 rounded drop-shadow-sm px-6 py-2 relative">
445 <div class="flex items-center gap-2 text-amber-500 dark:text-amber-300">
446 {{ i "triangle-alert" "w-4 h-4" }}
447 <span class="font-medium">this branch has been updated, consider resubmitting</span>
448 </div>
449 </div>
450 {{ end }}
451{{ end }}
452
453{{ define "submissionPipeline" }}
454 {{ $item := index . 0 }}
455 {{ $root := index . 3 }}
456 {{ $pipeline := index $root.Pipelines $item.SourceRev }}
457 {{ with $pipeline }}
458 {{ $id := .Id }}
459 {{ if .Statuses }}
460 <details class="group/pipeline">
461 <summary class="cursor-pointer list-none flex items-center gap-2">
462 {{ template "repo/pipelines/fragments/pipelineSymbol" (dict "Pipeline" $pipeline "ShortSummary" false) }}
463 <div class="text-sm text-gray-500 dark:text-gray-400">
464 <span class="group-open/pipeline:hidden inline">expand</span>
465 <span class="hidden group-open/pipeline:inline">collapse</span>
466 </div>
467 </summary>
468 <div class="my-2 grid grid-cols-1 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 divide-y divide-gray-200 dark:divide-gray-700">
469 {{ range $name, $all := .Statuses }}
470 <a href="/{{ $root.RepoInfo.FullName }}/pipelines/{{ $id }}/workflow/{{ $name }}" class="no-underline hover:no-underline hover:bg-gray-100/25 hover:dark:bg-gray-700/25">
471 <div
472 class="flex gap-2 items-center justify-between p-2">
473 {{ $lastStatus := $all.Latest }}
474 {{ $kind := $lastStatus.Status.String }}
475
476 <div id="left" class="flex items-center gap-2 flex-shrink-0">
477 {{ template "repo/pipelines/fragments/workflowSymbol" $all }}
478 {{ $name }}
479 </div>
480 <div id="right" class="flex items-center gap-2 flex-shrink-0">
481 <span class="font-bold">{{ $kind }}</span>
482 {{ if .TimeTaken }}
483 {{ template "repo/fragments/duration" .TimeTaken }}
484 {{ else }}
485 {{ template "repo/fragments/shortTimeAgo" $lastStatus.Created }}
486 {{ end }}
487 </div>
488 </div>
489 </a>
490 {{ end }}
491 </div>
492 </details>
493 {{ end }}
494 {{ end }}
495{{ end }}
496
497{{ define "submissionComments" }}
498 {{ $item := index . 0 }}
499 <div class="relative ml-10 border-l-2 border-gray-200 dark:border-gray-700">
500 {{ range $item.Comments }}
501 {{ template "submissionComment" . }}
502 {{ end }}
503 </div>
504{{ end }}
505
506{{ define "submissionComment" }}
507 <div id="comment-{{.ID}}" class="flex gap-2 -ml-4 py-4 w-full mx-auto">
508 <!-- left column: profile picture -->
509 <div class="flex-shrink-0">
510 <img
511 src="{{ tinyAvatar .OwnerDid }}"
512 alt=""
513 class="rounded-full size-8 mr-1 border-2 border-gray-100 dark:border-gray-900"
514 />
515 </div>
516 <!-- right column: name and body in two rows -->
517 <div class="flex-1 min-w-0">
518 <!-- Row 1: Author and timestamp -->
519 <div class="text-sm text-gray-500 dark:text-gray-400 flex items-center gap-1">
520 <span>{{ resolve .OwnerDid }}</span>
521 <span class="before:content-['·']"></span>
522 <a class="text-gray-500 dark:text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" href="#comment-{{.ID}}">
523 {{ template "repo/fragments/time" .Created }}
524 </a>
525 </div>
526 <!-- Row 2: Body text -->
527 <div class="prose dark:prose-invert mt-1">
528 {{ .Body | markdown }}
529 </div>
530 </div>
531 </div>
532{{ end }}
533
534{{ define "loginPrompt" }}
535 <div class="bg-amber-50 dark:bg-amber-900 border border-amber-500 rounded drop-shadow-sm p-2 relative flex gap-2 items-center">
536 <a href="/signup" class="btn-create py-0 hover:no-underline hover:text-white flex items-center gap-2">
537 sign up
538 </a>
539 <span class="text-gray-500 dark:text-gray-400">or</span>
540 <a href="/login" class="underline">login</a>
541 to add to the discussion
542 </div>
543{{ end }}