gitea源码

1234567891011121314151617181920
  1. <!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
  2. {{if eq .State "pending"}}
  3. {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
  4. {{end}}
  5. {{if eq .State "success"}}
  6. {{svg "octicon-check" 18 "commit-status icon text green"}}
  7. {{end}}
  8. {{if eq .State "error"}}
  9. {{svg "gitea-exclamation" 18 "commit-status icon text red"}}
  10. {{end}}
  11. {{if eq .State "failure"}}
  12. {{svg "octicon-x" 18 "commit-status icon text red"}}
  13. {{end}}
  14. {{if eq .State "warning"}}
  15. {{svg "gitea-exclamation" 18 "commit-status icon text yellow"}}
  16. {{end}}
  17. {{if eq .State "skipped"}}
  18. {{svg "octicon-skip" 18 "commit-status icon text grey"}}
  19. {{end}}