aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-12-20 04:13:12 +0100
committerGitHub <noreply@github.com>2020-12-20 11:13:12 +0800
commitf3c4baa84b8fa7afb3eab137b4c5e3544bd9e761 (patch)
treeb45be56f4fc8a5d1da04649ab2baa7a6a19eefe9 /routers/user
parent029836c34c75a277e1e1309f590905a71e5d312a (diff)
downloadgitea-f3c4baa84b8fa7afb3eab137b4c5e3544bd9e761.tar.gz
gitea-f3c4baa84b8fa7afb3eab137b4c5e3544bd9e761.zip
Show dropdown with all statuses for commit (#13977)
* Show dropdown with all statuses for commit * Use popups * Remove unnecessary change * Style popup * Use divided list * As per @silverwind * Refactor GetLastCommitStatus * Missing dropdown on repo home and commit page * Fix tests * Make status icon be a part of a link on PR list * Fix missing translation call * Indent fix Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 779971ca97..46532f82b9 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -563,7 +563,8 @@ func Issues(ctx *context.Context) {
issue.Repo = showReposMap[issue.RepoID]
if isPullList {
- commitStatus[issue.PullRequest.ID], _ = pull_service.GetLastCommitStatus(issue.PullRequest)
+ var statuses, _ = pull_service.GetLastCommitStatus(issue.PullRequest)
+ commitStatus[issue.PullRequest.ID] = models.CalcCommitStatus(statuses)
}
}