You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

status.tmpl 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. {{if $.LatestCommitStatus}}
  2. {{if not $.Issue.PullRequest.HasMerged}}
  3. <div class="ui top attached header">
  4. {{if eq .LatestCommitStatus.State "pending"}}
  5. {{$.locale.Tr "repo.pulls.status_checking"}}
  6. {{else if eq .LatestCommitStatus.State "success"}}
  7. {{$.locale.Tr "repo.pulls.status_checks_success"}}
  8. {{else if eq .LatestCommitStatus.State "warning"}}
  9. {{$.locale.Tr "repo.pulls.status_checks_warning"}}
  10. {{else if eq .LatestCommitStatus.State "failure"}}
  11. {{$.locale.Tr "repo.pulls.status_checks_failure"}}
  12. {{else if eq .LatestCommitStatus.State "error"}}
  13. {{$.locale.Tr "repo.pulls.status_checks_error"}}
  14. {{else}}
  15. {{$.locale.Tr "repo.pulls.status_checking"}}
  16. {{end}}
  17. </div>
  18. {{end}}
  19. {{range $.LatestCommitStatuses}}
  20. <div class="ui attached segment pr-status">
  21. {{template "repo/commit_status" .}}
  22. <div class="status-context">
  23. <span>{{.Context}} <span class="text grey">{{.Description}}</span></span>
  24. <div class="ui status-details">
  25. {{if $.is_context_required}}
  26. {{if (call $.is_context_required .Context)}}<div class="ui label">{{$.locale.Tr "repo.pulls.status_checks_requested"}}</div>{{end}}
  27. {{end}}
  28. <span>{{if .TargetURL}}<a href="{{.TargetURL}}">{{$.locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
  29. </div>
  30. </div>
  31. </div>
  32. {{end}}
  33. {{end}}