this repo has no description
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</section>
35{{ end }}
36
37{{ define "topbarLayout" }}
38 <div class="px-1 grid grid-cols-1">
39 <header style="z-index: 20" class="col-span-1">
40 {{ block "topbar" . }}
41 {{ template "layouts/topbar" . }}
42 {{ end }}
43 </header>
44 </div>
45{{ end }}
46
47{{ define "contentLayout" }}
48 <div class="grid grid-cols-1 md:grid-cols-1 gap-2">
49 <main class="px-1 col-span-1">
50 {{ block "content" . }}{{ end }}
51 </main>
52 </div>
53{{ end }}
54
55{{ block "contentAfterLayout" . }}
56 <div class="grid grid-cols-1 md:grid-cols-12 gap-2">
57 <div class="col-span-1 md:col-span-2">
58 {{ block "contentAfterLeft" . }} {{ end }}
59 </div>
60 <main class="px-1 col-span-1 md:col-span-10">
61 {{ block "contentAfter" . }}{{ end }}
62 </main>
63 </div>
64{{ end }}
65
66{{ block "footerLayout" . }}
67 <div class="px-1 grid grid-cols-1">
68 <footer class="mt-16 col-span-1">
69 {{ block "footer" . }}
70 {{ template "layouts/footer" . }}
71 {{ end }}
72 </footer>
73 </div>
74{{ end }}
75
76{{ define "contentAfter" }}
77 {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff .DiffOpts) }}
78{{end}}
79
80{{ define "contentAfterLeft" }}
81 <div class="flex flex-col gap-4 col-span-1 md:col-span-2 mt-4">
82 {{ template "repo/fragments/diffOpts" .DiffOpts }}
83 </div>
84 <div class="sticky top-0 mt-4">
85 {{ template "repo/fragments/diffChangedFiles" .Diff }}
86 </div>
87{{end}}