本站源代码
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.

27 satır
1.1KB

  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 "error"}}
  8. {{$.i18n.Tr "repo.pulls.status_checks_error"}}
  9. {{else}}
  10. {{$.i18n.Tr "repo.pulls.status_checking"}}
  11. {{end}}
  12. </div>
  13. {{range $.LatestCommitStatuses}}
  14. <div class="ui attached segment">
  15. <span>{{template "repo/commit_status" .}}</span>
  16. <span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
  17. <div class="ui right">
  18. {{if $.is_context_required}}
  19. {{if (call $.is_context_required .Context)}}<div class="ui label">Required</div>{{end}}
  20. {{end}}
  21. <span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">Details</a>{{end}}</span>
  22. </div>
  23. </div>
  24. {{end}}
  25. {{end}}
上海开阖软件有限公司 沪ICP备12045867号-1