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

status.tmpl 1.4 kB

123456789101112131415161718192021222324252627282930
  1. {{if $.LatestCommitStatus}}
  2. <div class="ui top attached header">
  3. {{if eq .LatestCommitStatus.State "pending"}}
  4. {{$.i18n.Tr "repo.pulls.status_checking"}}
  5. {{else if eq .LatestCommitStatus.State "success"}}
  6. {{$.i18n.Tr "repo.pulls.status_checks_success"}}
  7. {{else if eq .LatestCommitStatus.State "warning"}}
  8. {{$.i18n.Tr "repo.pulls.status_checks_warning"}}
  9. {{else if eq .LatestCommitStatus.State "failure"}}
  10. {{$.i18n.Tr "repo.pulls.status_checks_failure"}}
  11. {{else if eq .LatestCommitStatus.State "error"}}
  12. {{$.i18n.Tr "repo.pulls.status_checks_error"}}
  13. {{else}}
  14. {{$.i18n.Tr "repo.pulls.status_checking"}}
  15. {{end}}
  16. </div>
  17. {{range $.LatestCommitStatuses}}
  18. <div class="ui attached segment">
  19. <span>{{template "repo/commit_status" .}}</span>
  20. <span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
  21. <div class="ui right">
  22. {{if $.is_context_required}}
  23. {{if (call $.is_context_required .Context)}}<div class="ui label">Required</div>{{end}}
  24. {{end}}
  25. <span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">Details</a>{{end}}</span>
  26. </div>
  27. </div>
  28. {{end}}
  29. {{end}}