您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

commit_statuses.tmpl 834B

12345678910111213141516171819202122
  1. {{if .Statuses}}
  2. {{if and (eq (len .Statuses) 1) .Status.TargetURL}}
  3. <a class="gt-vm gt-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
  4. {{template "repo/commit_status" .Status}}
  5. </a>
  6. {{else}}
  7. <span class="gt-vm" data-tippy="commit-statuses" tabindex="0">
  8. {{template "repo/commit_status" .Status}}
  9. </span>
  10. {{end}}
  11. <div class="tippy-target ui relaxed list divided">
  12. {{range .Statuses}}
  13. <div class="ui item singular-status gt-df">
  14. {{template "repo/commit_status" .}}
  15. <span class="ui gt-ml-3 gt-f1">{{.Context}} <span class="text grey">{{.Description}}</span></span>
  16. {{if .TargetURL}}
  17. <a class="gt-ml-3" href="{{.TargetURL}}" target="_blank" rel="noopener noreferrer">{{ctx.Locale.Tr "repo.pulls.status_checks_details"}}</a>
  18. {{end}}
  19. </div>
  20. {{end}}
  21. </div>
  22. {{end}}