{{ define "title" }} comparing {{ .Base }} and {{ .Head }} on {{ .RepoInfo.FullName }} {{ end }} {{ define "repoContent" }} {{ template "repo/fragments/compareForm" . }} {{ $isPushAllowed := and .LoggedInUser .RepoInfo.Roles.IsPushAllowed }} {{ if $isPushAllowed }} {{ template "repo/fragments/compareAllowPull" . }} {{ end }} {{ end }} {{ define "topbarLayout" }} {{ template "layouts/topbar" . }} {{ end }} {{ define "contentLayout" }} {{ block "content" . }}{{ end }} {{ end }} {{ define "contentAfterLayout" }}