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.

issueicon.tmpl 606B

12345678910111213141516171819202122232425
  1. {{if .IsPull}}
  2. {{if not .PullRequest}}
  3. No PullRequest
  4. {{else}}
  5. {{if .IsClosed}}
  6. {{if .PullRequest.HasMerged}}
  7. {{svg "octicon-git-merge" 16 "text purple"}}
  8. {{else}}
  9. {{svg "octicon-git-pull-request" 16 "text red"}}
  10. {{end}}
  11. {{else}}
  12. {{if .PullRequest.IsWorkInProgress ctx}}
  13. {{svg "octicon-git-pull-request-draft" 16 "text grey"}}
  14. {{else}}
  15. {{svg "octicon-git-pull-request" 16 "text green"}}
  16. {{end}}
  17. {{end}}
  18. {{end}}
  19. {{else}}
  20. {{if .IsClosed}}
  21. {{svg "octicon-issue-closed" 16 "text red"}}
  22. {{else}}
  23. {{svg "octicon-issue-opened" 16 "text green"}}
  24. {{end}}
  25. {{end}}