This repository has no description
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/picLink" (list .Pull.OwnerDid "size-6" (index .VouchRelationships (did .Pull.OwnerDid))) }}
15 <a href="/{{ resolve .Pull.OwnerDid }}">{{ resolve .Pull.OwnerDid }}</a>
16 <span class="select-none before:content-['\00B7']"></span>
17 {{ template "repo/fragments/time" .Pull.Created }}
18
19 <span class="select-none before:content-['\00B7']"></span>
20 <span>
21 targeting
22 <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">
23 <a href="/{{ .RepoInfo.FullName }}/tree/{{ .Pull.TargetBranch }}" class="no-underline hover:underline">{{ .Pull.TargetBranch }}</a>
24 </span>
25 </span>
26 {{ if not .Pull.IsPatchBased }}
27 from
28 <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">
29 {{ if not .Pull.IsForkBased }}
30 {{ $repoPath := .RepoInfo.FullName }}
31 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a>
32 {{ else if .Pull.PullSource.Repo }}
33 {{ $repoPath := print (resolve .Pull.PullSource.Repo.Did) "/" .Pull.PullSource.Repo.Slug }}
34 <a href="/{{ $repoPath }}" class="no-underline hover:underline">{{ $repoPath }}</a>:
35 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a>
36 {{ else }}
37 <span class="italic">[deleted fork]</span>:
38 {{ .Pull.PullSource.Branch }}
39 {{ end }}
40 </span>
41 {{ end }}
42 </span>
43 </div>
44
45 {{ if .Pull.Body }}
46 <article id="body" class="mt-8 prose dark:prose-invert">
47 {{ .Pull.Body | markdown }}
48 </article>
49 {{ end }}
50
51 <div class="mt-2">
52 {{ template "repo/fragments/reactions"
53 (dict "Reactions" .Reactions
54 "UserReacted" .UserReacted
55 "ThreadAt" .Pull.AtUri) }}
56 </div>
57</section>
58
59
60{{ end }}