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 {{ template "layouts/topbar" . }} 15{{ end }} 16 17{{ define "contentLayout" }} 18 {{ block "content" . }}{{ end }} 19{{ end }} 20 21{{ define "contentAfterLayout" }} 22 <div class="grid grid-cols-1 md:grid-cols-12 gap-4"> 23 <div class="col-span-1 md:col-span-2"> 24 {{ block "contentAfterLeft" . }} {{ end }} 25 </div> 26 <main class="col-span-1 md:col-span-10"> 27 {{ block "contentAfter" . }}{{ end }} 28 </main> 29 </div> 30{{ end }} 31 32{{ define "footerLayout" }} 33 {{ template "layouts/footer" . }} 34{{ end }} 35 36{{ define "contentAfter" }} 37 {{ template "repo/fragments/diff" (list .RepoInfo.FullName .Diff .DiffOpts) }} 38{{end}} 39 40{{ define "contentAfterLeft" }} 41 <div class="flex flex-col gap-4 col-span-1 md:col-span-2"> 42 {{ template "repo/fragments/diffOpts" .DiffOpts }} 43 </div> 44 <div class="sticky top-0 mt-4"> 45 {{ template "repo/fragments/diffChangedFiles" .Diff }} 46 </div> 47{{end}}