A vibe coded tangled fork which supports pijul.
at 2a2718a4a548236a0c704a596fd836f263e9740d 43 lines 1.8 kB view raw
1{{ define "repo/pulls/fragments/pullStack" }} 2 <details class="bg-white dark:bg-gray-800 group" open> 3 <summary class="p-2 text-sm font-bold list-none cursor-pointer hover:text-gray-500 hover:dark:text-gray-400"> 4 <span class="flex items-center gap-2"> 5 <span class="group-open:hidden"> 6 {{ i "chevrons-up-down" "w-4 h-4" }} 7 </span> 8 <span class="hidden group-open:flex"> 9 {{ i "chevrons-down-up" "w-4 h-4" }} 10 </span> 11 STACK 12 <span class="bg-gray-200 dark:bg-gray-700 font-normal rounded py-1/2 px-1 text-sm">{{ len .Stack }}</span> 13 </span> 14 </summary> 15 {{ block "pullList" (list .Stack $) }} {{ end }} 16 </details> 17{{ end }} 18 19{{ define "pullList" }} 20 {{ $list := index . 0 }} 21 {{ $root := index . 1 }} 22 <div class="grid grid-cols-1 rounded border border-gray-200 dark:border-gray-700 divide-y divide-gray-200 dark:divide-gray-700"> 23 {{ range $pull := $list }} 24 {{ $isCurrent := false }} 25 {{ $pipeline := index $root.Pipelines $pull.LatestSha }} 26 {{ with $root.Pull }} 27 {{ $isCurrent = eq $pull.PullId $root.Pull.PullId }} 28 {{ end }} 29 <a href="/{{ $root.RepoInfo.FullName }}/pulls/{{ $pull.PullId }}" class="no-underline hover:no-underline hover:bg-gray-100/25 hover:dark:bg-gray-700/25"> 30 <div class="flex gap-2 items-center px-2 {{ if $isCurrent }}bg-gray-100/50 dark:bg-gray-700/50{{ end }}"> 31 {{ if $isCurrent }} 32 <div class="flex-shrink-0"> 33 {{ i "arrow-right" "w-4 h-4" }} 34 </div> 35 {{ end }} 36 <div class="{{ if not $isCurrent }} pl-6 {{ end }} flex-grow min-w-0 w-full py-2"> 37 {{ template "repo/pulls/fragments/summarizedPullHeader" (list $pull $pipeline) }} 38 </div> 39 </div> 40 </a> 41 {{ end }} 42 </div> 43{{ end }}