this repo has no description
1{{ define "title" }} 2 patch of {{ .Pull.Title }} &middot; round #{{ .Round }} &middot; pull 3 #{{ .Pull.PullId }} &middot; 4 {{ .RepoInfo.FullName }} 5{{ end }} 6 7{{ define "extrameta" }} 8 {{ $title := printf "patch of %s &middot; pull #%d &middot; %s" .Pull.Title .Pull.PullId .RepoInfo.FullName }} 9 {{ $url := printf "https://tangled.sh/%s/pulls/%d/round/%d" .RepoInfo.FullName .Pull.PullId .Round }} 10 11 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} 12{{ end }} 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 <div class="flex gap-3 items-center mb-3"> 19 <a 20 href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/" 21 class="flex items-center gap-2 font-medium"> 22 {{ i "arrow-left" "w-5 h-5" }} 23 back 24 </a> 25 <span class="select-none before:content-['\00B7']"></span> 26 round 27 <span class="flex items-center"> 28 {{ i "hash" "w-4 h-4" }}{{ .Round }} 29 </span> 30 <span class="select-none before:content-['\00B7']"></span> 31 <a 32 href="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .Round }}.patch"> 33 view raw 34 </a> 35 </div> 36 <div class="border-t border-gray-200 dark:border-gray-700 my-2"></div> 37 {{ template "repo/pulls/fragments/pullHeader" . }} 38 </section> 39 </section> 40{{ end }} 41 42{{ define "topbarLayout" }} 43 <header class="px-1 col-span-full" style="z-index: 20;"> 44 {{ template "layouts/topbar" . }} 45 </header> 46{{ end }} 47 48{{ define "mainLayout" }} 49 <div class="px-1 col-span-full flex flex-col gap-4"> 50 {{ block "contentLayout" . }} 51 {{ block "content" . }}{{ end }} 52 {{ end }} 53 54 {{ block "contentAfterLayout" . }} 55 <div class="flex-grow grid grid-cols-1 md:grid-cols-12 gap-4"> 56 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 57 {{ block "contentAfterLeft" . }}{{ end }} 58 </div> 59 <main class="col-span-1 md:col-span-10"> 60 {{ block "contentAfter" . }}{{ end }} 61 </main> 62 </div> 63 {{ end }} 64 </div> 65{{ end }} 66 67{{ define "footerLayout" }} 68 <footer class="px-1 col-span-full mt-12"> 69 {{ template "layouts/footer" . }} 70 </footer> 71{{ end }} 72 73{{ define "contentAfter" }} 74 {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff .DiffOpts) }} 75{{ end }} 76 77{{ define "contentAfterLeft" }} 78 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 79 {{ template "repo/fragments/diffOpts" .DiffOpts }} 80 </div> 81 <div class="sticky top-0 flex-grow max-h-screen"> 82 {{ template "repo/fragments/diffChangedFiles" .Diff }} 83 </div> 84{{ end }}