{{/* Template Attributes: * CommitStatus: summary of all commit status state * CommitStatuses: all commit status elements * ShowHideChecks: whether use a button to show/hide the checks * is_context_required: Used in pull request commit status check table */}} {{if .CommitStatus}}
{{if eq .CommitStatus.State "pending"}} {{ctx.Locale.Tr "repo.pulls.status_checking"}} {{else if eq .CommitStatus.State "success"}} {{ctx.Locale.Tr "repo.pulls.status_checks_success"}} {{else if eq .CommitStatus.State "warning"}} {{ctx.Locale.Tr "repo.pulls.status_checks_warning"}} {{else if eq .CommitStatus.State "failure"}} {{ctx.Locale.Tr "repo.pulls.status_checks_failure"}} {{else if eq .CommitStatus.State "error"}} {{ctx.Locale.Tr "repo.pulls.status_checks_error"}} {{else}} {{ctx.Locale.Tr "repo.pulls.status_checking"}} {{end}} {{if .ShowHideChecks}}
{{end}}
{{range .CommitStatuses}}
{{template "repo/commit_status" .}}
{{.Context}} {{.Description}}
{{if $.is_context_required}} {{if (call $.is_context_required .Context)}}
{{ctx.Locale.Tr "repo.pulls.status_checks_requested"}}
{{end}} {{end}} {{if .TargetURL}}{{ctx.Locale.Tr "repo.pulls.status_checks_details"}}{{end}}
{{end}}
{{end}}