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