-
- {{$canChoose := false}}
- {{if eq .Type 4}}
- {{if or (eq .ReviewerID $.SignedUserID) $.Permission.IsAdmin}}
- {{$canChoose = true}}
- {{end}}
- {{else}}
- {{if and (or $.IsIssuePoster $.CanChooseReviewer) (not (eq $.SignedUserID .ReviewerID))}}
- {{$canChoose = true}}
+
+
+
+
+
{{.Reviewer.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 if eq .Type 4}}
+ {{$.i18n.Tr "repo.issues.review.wait" $createdStr | Safe}}
+ {{else}}
+ {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
{{end}}
+
+
+
+ {{if .Stale}}
+
+
+
{{end}}
+
- {{if $canChoose }}
-
- {{svg "octicon-sync" 16}}
-
- {{end}}
- {{svg (printf "octicon-%s" .Type.Icon) 16}}
-
- {{if .Stale}}
-
-
-
- {{end}}
-
-
-
-
{{.Reviewer.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 if eq .Type 4}}
- {{$.i18n.Tr "repo.issues.review.wait" $createdStr | Safe}}
- {{else}}
- {{$.i18n.Tr "repo.issues.review.comment" $createdStr | Safe}}
- {{end}}
-
+ {{$canChoose := false}}
+ {{if eq .Type 4}}
+ {{if or (eq .ReviewerID $.SignedUserID) $.Permission.IsAdmin}}
+ {{$canChoose = true}}
+ {{end}}
+ {{else}}
+ {{if and (or $.IsIssuePoster $.CanChooseReviewer) (not (eq $.SignedUserID .ReviewerID))}}
+ {{$canChoose = true}}
+ {{end}}
+ {{end}}
+
+ {{if $canChoose }}
+
+ {{svg "octicon-sync" 16}}
+
+ {{end}}
+ {{svg (printf "octicon-%s" .Type.Icon) 16}}
+
+