{{if gt (len .PullReviewersWithType) 0}}

{{$.i18n.Tr "repo.issues.review.reviewers"}}

{{range .PullReviewersWithType}} {{ $createdStr:= TimeSinceUnix .ReviewUpdatedUnix $.Lang }}
{{.Name}} {{if eq .Type 1}} {{$.i18n.Tr "repo.issues.review.approve" $createdStr | Safe}} {{else if eq .Type 2}} {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}} {{else if eq .Type 3}} {{$.i18n.Tr "repo.issues.review.reject" $createdStr | Safe}} {{else}} {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}} {{end}}
{{end}}
{{end}}
{{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 .IsPullRequestBroken}}
{{$.i18n.Tr "repo.pulls.data_broken"}}
{{else if .IsPullWorkInProgress}}
{{$.i18n.Tr "repo.pulls.cannot_merge_work_in_progress" .WorkInProgressPrefix | Str2html}}
{{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 .AllowMerge}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} {{if or $prUnit.PullRequestsConfig.AllowMerge $prUnit.PullRequestsConfig.AllowRebase $prUnit.PullRequestsConfig.AllowSquash}}
{{if $prUnit.PullRequestsConfig.AllowMerge}} {{end}} {{if $prUnit.PullRequestsConfig.AllowRebase}} {{end}} {{if $prUnit.PullRequestsConfig.AllowSquash}} {{end}}
{{else}}
{{$.i18n.Tr "repo.pulls.no_merge_desc"}}
{{$.i18n.Tr "repo.pulls.no_merge_helper"}}
{{end}} {{end}} {{else}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}}
{{end}}