{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}}
				{{ctx.Locale.Tr "repo.pulls.compare_changes"}}
				{{ctx.Locale.Tr "repo.pulls.compare_changes_desc"}}
			{{else}}
				{{ctx.Locale.Tr "action.compare_commits_general"}}
			{{end}}
		
		{{$BaseCompareName := $.BaseName -}}
		{{- $HeadCompareName := $.HeadRepo.OwnerName -}}
		{{- if and (eq $.BaseName $.HeadRepo.OwnerName) (ne $.Repository.Name $.HeadRepo.Name) -}}
			{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
		{{- end -}}
		{{- $OwnForkCompareName := "" -}}
		{{- if .OwnForkRepo -}}
			{{- $OwnForkCompareName = .OwnForkRepo.OwnerName -}}
		{{- end -}}
		{{- $RootRepoCompareName := "" -}}
		{{- if .RootRepo -}}
			{{- $RootRepoCompareName = .RootRepo.OwnerName -}}
			{{- if eq $.HeadRepo.OwnerName .RootRepo.OwnerName -}}
				{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
			{{- end -}}
		{{- end -}}
		
		{{$showDiffBox := and .CommitCount (not .IsNothingToCompare)}}
		{{if and .IsSigned .PageIsComparePull}}
			{{$allowCreatePR := or $.AllowEmptyPr (not .IsNothingToCompare)}}
			{{if .IsNothingToCompare}}
				
					{{if $allowCreatePR}}
						{{ctx.Locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}
					{{else if and .HeadIsBranch .BaseIsBranch}}
						{{ctx.Locale.Tr "repo.pulls.nothing_to_compare"}}
					{{else}}
						{{ctx.Locale.Tr "repo.pulls.nothing_to_compare_have_tag"}}
					{{end}}
				
			{{end}}
			{{if .HasPullRequest}}
				
					{{template "shared/issueicon" .}}
					
			{{else if .Repository.IsArchived}}
				
			{{else if $allowCreatePR}}
				
				
						{{ctx.RenderUtils.RenderIssueTitle .PullRequest.Issue.Title $.Repository}}
						#{{.PullRequest.Issue.Index}}
					
					
						{{ctx.Locale.Tr "repo.pulls.view"}}
					
				
					{{template "repo/issue/new_form" .}}
				
			{{end}}
		{{else}}{{/* not singed-in or not for pull-request */}}
			{{if not .CommitCount}}
				{{ctx.Locale.Tr "repo.commits.nothing_to_compare"}}
			{{end}}
		{{end}}
	
			{{template "repo/commits_table" .}}
			{{template "repo/diff/box" .}}
		
	{{end}}