summaryrefslogtreecommitdiffstats
path: root/templates/repo/commit_status.tmpl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/repo/commit_status.tmpl
parentInitial commit. (diff)
downloadforgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.tar.xz
forgejo-dd136858f1ea40ad3c94191d647487fa4f31926c.zip
Adding upstream version 9.0.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rw-r--r--templates/repo/commit_status.tmpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl
new file mode 100644
index 0000000..eb700ab
--- /dev/null
+++ b/templates/repo/commit_status.tmpl
@@ -0,0 +1,16 @@
+<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
+{{if eq .State "pending"}}
+ {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
+{{end}}
+{{if eq .State "success"}}
+ {{svg "octicon-check" 18 "commit-status icon text green"}}
+{{end}}
+{{if eq .State "error"}}
+ {{svg "gitea-exclamation" 18 "commit-status icon text red"}}
+{{end}}
+{{if eq .State "failure"}}
+ {{svg "octicon-x" 18 "commit-status icon text red"}}
+{{end}}
+{{if eq .State "warning"}}
+ {{svg "gitea-exclamation" 18 "commit-status icon text yellow"}}
+{{end}}