this repo has no description
1{{ define "title" }} 2 comparing {{ .Base }} and {{ .Head }} on 3 {{ .RepoInfo.FullName }} 4{{ end }} 5 6{{ define "repoContent" }} 7 {{ template "repo/fragments/compareForm" . }} 8 {{ $isPushAllowed := and .LoggedInUser .RepoInfo.Roles.IsPushAllowed }} 9 {{ if $isPushAllowed }} 10 {{ template "repo/fragments/compareAllowPull" . }} 11 {{ end }} 12{{ end }} 13 14{{ define "topbarLayout" }} 15 <header class="px-1 col-span-full" style="z-index: 20;"> 16 {{ template "layouts/topbar" . }} 17 </header> 18{{ end }} 19 20{{ define "mainLayout" }} 21 <div class="px-1 col-span-full flex flex-col gap-4"> 22 {{ block "contentLayout" . }} 23 {{ block "content" . }}{{ end }} 24 {{ end }} 25 26 {{ block "contentAfterLayout" . }} 27 <div class="flex-grow grid grid-cols-1 md:grid-cols-12 gap-4"> 28 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 29 {{ block "contentAfterLeft" . }}{{ end }} 30 </div> 31 <main class="col-span-1 md:col-span-10"> 32 {{ block "contentAfter" . }}{{ end }} 33 </main> 34 </div> 35 {{ end }} 36 </div> 37{{ end }} 38 39{{ define "footerLayout" }} 40 <footer class="px-1 col-span-full mt-12"> 41 {{ template "layouts/footer" . }} 42 </footer> 43{{ end }} 44 45{{ define "contentAfter" }} 46 {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff .DiffOpts) }} 47{{ end }} 48 49{{ define "contentAfterLeft" }} 50 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 51 {{ template "repo/fragments/diffOpts" .DiffOpts }} 52 </div> 53 <div class="sticky top-0 flex-grow max-h-screen"> 54 {{ template "repo/fragments/diffChangedFiles" .Diff }} 55 </div> 56{{ end }}