summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-07-18 18:59:02 +0200
committerGitHub <noreply@github.com>2023-07-18 18:59:02 +0200
commitdcb607d3cff2cb8de5632e77a886d59e620a07b9 (patch)
treeb3dc69d35d04fdedf4a8beddccd2320c96001849 /templates
parentMove public asset files to the proper directory (#25907) (diff)
downloadforgejo-dcb607d3cff2cb8de5632e77a886d59e620a07b9.tar.xz
forgejo-dcb607d3cff2cb8de5632e77a886d59e620a07b9.zip
Make pending commit status yellow again (#25935)
With the introduction of Actions, the pending commit icon has changed from yellow to grey for Drone integrations which never set the "running" status, so it stays in "pending" until completion. I find it better to have this icon colored like on 1.19. Now both the "pending" and "running" icons look the same, but I guess we could add an animation to the "running" state similar to GitHub has to it later. Before: <img width="339" alt="Screenshot 2023-07-17 at 19 14 19" src="https://github.com/go-gitea/gitea/assets/115237/2f4886e4-74fd-42ea-b59e-9af8f141bf1f"> After: <img width="335" alt="Screenshot 2023-07-17 at 19 14 30" src="https://github.com/go-gitea/gitea/assets/115237/53189642-e72d-47f6-9cbe-f14eda28f730"> Also, it matches GH's icon: <img width="466" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/5804ff90-d223-4a3c-8093-7a9abbaacf87"> --------- Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/commit_status.tmpl5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl
index d52e151247..6a01b9f342 100644
--- a/templates/repo/commit_status.tmpl
+++ b/templates/repo/commit_status.tmpl
@@ -1,7 +1,4 @@
-{{if eq .State "pending"}}
- {{svg "octicon-dot-fill" 18 "commit-status icon text grey"}}
-{{end}}
-{{if eq .State "running"}}
+{{if or (eq .State "pending") (eq .State "running")}}
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
{{end}}
{{if eq .State "success"}}