This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / repo / pulls / fragments / pullHeader.html
3.2 kB 67 lines
1{{ define "repo/pulls/fragments/pullHeader" }} 2<header class="pb-2"> 3 {{ $pipeline := index .Pipelines .Pull.LatestSha }} 4 <h1 class="flex flex-wrap items-center gap-2 text-2xl dark:text-white"> 5 {{ .Pull.Title | description }} 6 <span class="text-gray-500 dark:text-gray-400">#{{ .Pull.PullId }}</span> 7 {{ if and $pipeline $pipeline.Id }} 8 <span class="text-sm"> 9 {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" .RepoInfo) }} 10 </span> 11 {{ end }} 12 </h1> 13</header> 14 15<section> 16 <div class="flex items-center gap-2"> 17 {{ template "repo/pulls/fragments/pullState" .Pull.State }} 18 <span class="text-gray-500 dark:text-gray-400 text-sm flex flex-wrap items-center gap-1"> 19 opened by 20 {{ template "user/fragments/picLink" (list .Pull.OwnerDid "size-6" (index .VouchRelationships (did .Pull.OwnerDid))) }} 21 <a href="/{{ resolve .Pull.OwnerDid }}">{{ resolve .Pull.OwnerDid }}</a> 22 <span class="select-none before:content-['\00B7']"></span> 23 {{ template "repo/fragments/time" .Pull.Created }} 24 25 <span class="select-none before:content-['\00B7']"></span> 26 <span> 27 targeting 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 <a href="/{{ .RepoInfo.FullName }}/tree/{{ .Pull.TargetBranch }}" class="no-underline hover:underline">{{ .Pull.TargetBranch }}</a> 30 </span> 31 </span> 32 {{ if not .Pull.IsPatchBased }} 33 from 34 <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"> 35 {{ if not .Pull.IsForkBased }} 36 {{ $repoPath := .RepoInfo.FullName }} 37 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a> 38 {{ else if .Pull.PullSource.Repo }} 39 {{ $repoPath := print (resolve .Pull.PullSource.Repo.Did) "/" .Pull.PullSource.Repo.Slug }} 40 <a href="/{{ $repoPath }}" class="no-underline hover:underline">{{ $repoPath }}</a>: 41 <a href="/{{ $repoPath }}/tree/{{ pathEscape .Pull.PullSource.Branch }}" class="no-underline hover:underline">{{ .Pull.PullSource.Branch }}</a> 42 {{ else }} 43 <span class="italic">[deleted fork]</span>: 44 {{ .Pull.PullSource.Branch }} 45 {{ end }} 46 </span> 47 {{ end }} 48 </span> 49 </div> 50 51 {{ if .Pull.Body }} 52 <article id="body" class="mt-8 prose dark:prose-invert"> 53 {{ .Pull.Body | markdown }} 54 </article> 55 {{ end }} 56 57 <div class="mt-2"> 58 {{ $aturi := .Pull.AtUri }} 59 {{ template "repo/fragments/reactions" 60 (dict "Reactions" (index .Reactions $aturi) 61 "UserReacted" (index .UserReacted $aturi) 62 "ThreadAt" $aturi) }} 63 </div> 64</section> 65 66 67{{ end }}