forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
1{{ define "title" }}
2 patch of {{ .Pull.Title }} · round #{{ .Round }} · pull #{{ .Pull.PullId }} · {{ .RepoInfo.FullName }}
3{{ end }}
4
5
6{{ define "extrameta" }}
7 {{ $title := printf "patch of %s · pull #%d · %s" .Pull.Title .Pull.PullId .RepoInfo.FullName }}
8 {{ $url := printf "https://tangled.sh/%s/pulls/%d/round/%d" .RepoInfo.FullName .Pull.PullId .Round }}
9
10 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }}
11{{ end }}
12
13
14{{ define "content" }}
15<section>
16 <section
17 class="bg-white dark:bg-gray-800 p-6 rounded relative w-full mx-auto drop-shadow-sm dark:text-white"
18 >
19 <div class="flex gap-3 items-center mb-3">
20 <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" class="flex items-center gap-2 font-medium">
21 {{ i "arrow-left" "w-5 h-5" }}
22 back
23 </a>
24 <span class="select-none before:content-['\00B7']"></span>
25 round<span class="flex items-center">{{ i "hash" "w-4 h-4" }}{{ .Round }}</span>
26 <span class="select-none before:content-['\00B7']"></span>
27 <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .Round }}.patch">
28 view raw
29 </a>
30 </div>
31 <div class="border-t border-gray-200 dark:border-gray-700 my-2"></div>
32 {{ template "repo/pulls/fragments/pullHeader" . }}
33 </section>
34 {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff) }}
35</section>
36{{ end }}