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.

commit_status.tmpl 573B

12345678910111213141516
  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}}