{{template "base/head" .}}
{{template "repo/header" .}}
{{if .PageIsComparePull}}

{{if and $.IsSigned (not .Repository.IsArchived)}} {{.i18n.Tr "repo.pulls.compare_changes"}}
{{.i18n.Tr "repo.pulls.compare_changes_desc"}}
{{ else }} {{.i18n.Tr "action.compare_commits_general"}} {{ end }}

{{svg "octicon-git-compare"}} ...
{{end}} {{if .IsNothingToCompare}} {{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived) }}
{{.i18n.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}
{{else}}
{{.i18n.Tr "repo.pulls.nothing_to_compare"}}
{{end}} {{else if and .PageIsComparePull (gt .CommitCount 0)}} {{if .HasPullRequest}}
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
{{else}} {{if and $.IsSigned (not .Repository.IsArchived)}}
{{else if .Repository.IsArchived}}
{{.i18n.Tr "repo.archive.title"}}
{{end}} {{if $.IsSigned}} {{end}} {{template "repo/commits_table" .}} {{template "repo/diff/box" .}} {{end}} {{else}} {{template "repo/commits_table" .}} {{template "repo/diff/box" .}} {{end}}
{{template "base/footer" .}}