diff options
author | yp05327 <576951401@qq.com> | 2023-08-21 16:26:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 15:26:10 +0800 |
commit | f6e7798405ef9eb7b2936b112fd2a4ea1bab4082 (patch) | |
tree | e4197e509e5b3f0f7a7f87f0385a6e18b76fbc4a /modules/structs | |
parent | 3be80a863b6ef3671605a20800d8e2122d758ec5 (diff) | |
download | gitea-f6e7798405ef9eb7b2936b112fd2a4ea1bab4082.tar.gz gitea-f6e7798405ef9eb7b2936b112fd2a4ea1bab4082.zip |
Add link to job details and tooltip to commit status in repo list in dashboard (#26326)
Tooltip:
![image](https://github.com/go-gitea/gitea/assets/18380374/237cb545-7844-424b-b995-1008eaaaedec)
Link to the target job:
![image](https://github.com/go-gitea/gitea/assets/18380374/0c11a97f-6517-47f2-8773-f381488c084e)
Diffstat (limited to 'modules/structs')
-rw-r--r-- | modules/structs/commit_status.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/structs/commit_status.go b/modules/structs/commit_status.go index de1d8fa566..fda795dca6 100644 --- a/modules/structs/commit_status.go +++ b/modules/structs/commit_status.go @@ -25,6 +25,10 @@ var commitStatusPriorities = map[CommitStatusState]int{ CommitStatusSuccess: 3, } +func (css CommitStatusState) String() string { + return string(css) +} + // NoBetterThan returns true if this State is no better than the given State // This function only handles the states defined in CommitStatusPriorities func (css CommitStatusState) NoBetterThan(css2 CommitStatusState) bool { |