{{if .Issue.PullRequest.HasMerged}}
{{$.i18n.Tr "repo.pulls.has_merged"}}
{{if .IsPullBranchDeletable}}
{{$.i18n.Tr "repo.branch.delete" .HeadTarget}}
{{end}} {{else if .Issue.IsClosed}}
{{$.i18n.Tr "repo.pulls.reopen_to_merge"}}
{{else if .IsPullReuqestBroken}}
{{$.i18n.Tr "repo.pulls.data_broken"}}
{{else if .Issue.PullRequest.IsChecking}}
{{$.i18n.Tr "repo.pulls.is_checking"}}
{{else if .Issue.PullRequest.CanAutoMerge}}
{{$.i18n.Tr "repo.pulls.can_auto_merge_desc"}}
{{if .IsRepositoryWriter}}
{{.CsrfTokenHtml}}
{{end}} {{else}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}}
{{end}}