forked from tangled.org/core
this repo has no description
at master 2.6 kB view raw
1{{ define "title" }} 2 interdiff of round #{{ .Round }} and #{{ sub .Round 1 }} &middot; pull #{{ .Pull.PullId }} &middot; {{ .RepoInfo.FullName }} 3{{ end }} 4 5 6{{ define "extrameta" }} 7 {{ $title := printf "interdiff of %d and %d &middot; %s &middot; pull #%d &middot; %s" .Round (sub .Round 1) .Pull.Title .Pull.PullId .RepoInfo.FullName }} 8 {{ $url := printf "https://tangled.org/%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 <header class="px-1 col-span-full" style="z-index: 20;"> 33 {{ template "layouts/fragments/topbar" . }} 34 </header> 35{{ end }} 36 37{{ define "mainLayout" }} 38 <div class="px-1 col-span-full flex flex-col gap-4"> 39 {{ block "contentLayout" . }} 40 {{ block "content" . }}{{ end }} 41 {{ end }} 42 43 {{ block "contentAfterLayout" . }} 44 <div class="flex-grow grid grid-cols-1 md:grid-cols-12 gap-4"> 45 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 46 {{ block "contentAfterLeft" . }} {{ end }} 47 </div> 48 <main class="col-span-1 md:col-span-10"> 49 {{ block "contentAfter" . }}{{ end }} 50 </main> 51 </div> 52 {{ end }} 53 </div> 54{{ end }} 55 56{{ define "footerLayout" }} 57 <footer class="px-1 col-span-full mt-12"> 58 {{ template "layouts/fragments/footer" . }} 59 </footer> 60{{ end }} 61 62 63{{ define "contentAfter" }} 64 {{ template "repo/fragments/interdiff" (list .RepoInfo.FullName .Interdiff .DiffOpts) }} 65{{end}} 66 67{{ define "contentAfterLeft" }} 68 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 69 {{ template "repo/fragments/diffOpts" .DiffOpts }} 70 </div> 71 <div class="sticky top-0 flex-grow max-h-screen overflow-y-auto"> 72 {{ template "repo/fragments/interdiffFiles" .Interdiff }} 73 </div> 74{{end}}