A vibe coded tangled fork which supports pijul.
at 2a2718a4a548236a0c704a596fd836f263e9740d 59 lines 2.7 kB view raw
1{{ define "repo/pulls/fragments/pullHeader" }} 2<header class="pb-2"> 3 <h1 class="text-2xl dark:text-white"> 4 {{ .Pull.Title | description }} 5 <span class="text-gray-500 dark:text-gray-400">#{{ .Pull.PullId }}</span> 6 </h1> 7</header> 8 9<section> 10 <div class="flex items-center gap-2"> 11 {{ template "repo/pulls/fragments/pullState" .Pull.State }} 12 <span class="text-gray-500 dark:text-gray-400 text-sm flex flex-wrap items-center gap-1"> 13 opened by 14 {{ template "user/fragments/picHandleLink" .Pull.OwnerDid }} 15 <span class="select-none before:content-['\00B7']"></span> 16 {{ template "repo/fragments/time" .Pull.Created }} 17 18 <span class="select-none before:content-['\00B7']"></span> 19 <span> 20 targeting 21 <span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center"> 22 <a href="/{{ .RepoInfo.FullName }}/tree/{{ .Pull.TargetBranch }}" class="no-underline hover:underline">{{ .Pull.TargetBranch }}</a> 23 </span> 24 </span> 25 {{ if not .Pull.IsPatchBased }} 26 from 27 <span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center"> 28 {{ if not .Pull.IsForkBased }} 29 {{ $repoPath := .RepoInfo.FullName }} 30 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a> 31 {{ else if .Pull.PullSource.Repo }} 32 {{ $repoPath := print (resolve .Pull.PullSource.Repo.Did) "/" .Pull.PullSource.Repo.Name }} 33 <a href="/{{ $repoPath }}" class="no-underline hover:underline">{{ $repoPath }}</a>: 34 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a> 35 {{ else }} 36 <span class="italic">[deleted fork]</span>: 37 {{ .Pull.PullSource.Branch }} 38 {{ end }} 39 </span> 40 {{ end }} 41 </span> 42 </div> 43 44 {{ if .Pull.Body }} 45 <article id="body" class="mt-8 prose dark:prose-invert"> 46 {{ .Pull.Body | markdown }} 47 </article> 48 {{ end }} 49 50 <div class="mt-2"> 51 {{ template "repo/fragments/reactions" 52 (dict "Reactions" .Reactions 53 "UserReacted" .UserReacted 54 "ThreadAt" .Pull.AtUri) }} 55 </div> 56</section> 57 58 59{{ end }}