this repo has no description
1{{ define "title" }}
2 interdiff of round #{{ .Round }} and #{{ sub .Round 1 }} · pull #{{ .Pull.PullId }} · {{ .RepoInfo.FullName }}
3{{ end }}
4
5
6{{ define "extrameta" }}
7 {{ $title := printf "interdiff of %d and %d · %s · pull #%d · %s" .Round (sub .Round 1) .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" (unescapeHtml $title) "Url" $url) }}
11{{ end }}
12
13{{ define "content" }}
14 <section class="rounded drop-shadow-sm bg-white dark:bg-gray-800 py-4 px-6 dark:text-white">
15 <header class="pb-2">
16 <div class="flex gap-3 items-center mb-3">
17 <a href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" class="flex items-center gap-2 font-medium">
18 {{ i "arrow-left" "w-5 h-5" }}
19 back
20 </a>
21 <span class="select-none before:content-['\00B7']"></span>
22 interdiff of round #{{ .Round }} and #{{ sub .Round 1 }}
23 </div>
24 <div class="border-t border-gray-200 dark:border-gray-700 my-2"></div>
25 {{ template "repo/pulls/fragments/pullHeader" . }}
26 </header>
27 </section>
28
29{{ end }}
30
31{{ define "topbarLayout" }}
32 <div class="px-1 grid grid-cols-1">
33 <header style="z-index: 20" class="col-span-1">
34 {{ block "topbar" . }}
35 {{ template "layouts/topbar" . }}
36 {{ end }}
37 </header>
38 </div>
39{{ end }}
40
41{{ define "contentLayout" }}
42 <div class="grid grid-cols-1 md:grid-cols-1 gap-2">
43 <main class="px-1 col-span-1">
44 {{ block "content" . }}{{ end }}
45 </main>
46 </div>
47{{ end }}
48
49{{ block "contentAfterLayout" . }}
50 <div class="grid grid-cols-1 md:grid-cols-12 gap-2">
51 <div class="col-span-1 md:col-span-2">
52 {{ block "contentAfterLeft" . }} {{ end }}
53 </div>
54 <main class="px-1 col-span-1 md:col-span-10">
55 {{ block "contentAfter" . }}{{ end }}
56 </main>
57 </div>
58{{ end }}
59
60{{ block "footerLayout" . }}
61 <div class="px-1 grid grid-cols-1">
62 <footer class="mt-16 col-span-1">
63 {{ block "footer" . }}
64 {{ template "layouts/footer" . }}
65 {{ end }}
66 </footer>
67 </div>
68{{ end }}
69
70{{ define "contentAfter" }}
71 {{ template "repo/fragments/interdiff" (list .RepoInfo.FullName .Interdiff .DiffOpts) }}
72{{end}}
73
74{{ define "contentAfterLeft" }}
75 <div class="flex flex-col gap-4 col-span-1 md:col-span-2 mt-4">
76 {{ template "repo/fragments/diffOpts" .DiffOpts }}
77 </div>
78 <div class="sticky top-0 mt-4">
79 {{ template "repo/fragments/interdiffFiles" .Interdiff }}
80 </div>
81{{end}}