forked from forgejo/forgejo
Show commit status icon in commits table (#1688)
* Show commit status icon in commits table * Add comments * Fix icons * Few more places where commit table is displayed * Change integration test to use goquery for parsing html * Add integration tests for commit table and status icons * Fix status to return lates status correctly on all databases * Rewrote lates commit status selects
This commit is contained in:
parent
c864ccf9b1
commit
79494047b0
24 changed files with 4185 additions and 87 deletions
|
@ -293,6 +293,8 @@ func ViewPullCommits(ctx *context.Context) {
|
|||
}
|
||||
|
||||
commits = models.ValidateCommitsWithEmails(commits)
|
||||
commits = models.ParseCommitsWithSignature(commits)
|
||||
commits = models.ParseCommitsWithStatus(commits, ctx.Repo.Repository)
|
||||
ctx.Data["Commits"] = commits
|
||||
ctx.Data["CommitCount"] = commits.Len()
|
||||
|
||||
|
@ -576,6 +578,8 @@ func PrepareCompareDiff(
|
|||
}
|
||||
|
||||
prInfo.Commits = models.ValidateCommitsWithEmails(prInfo.Commits)
|
||||
prInfo.Commits = models.ParseCommitsWithSignature(prInfo.Commits)
|
||||
prInfo.Commits = models.ParseCommitsWithStatus(prInfo.Commits, headRepo)
|
||||
ctx.Data["Commits"] = prInfo.Commits
|
||||
ctx.Data["CommitCount"] = prInfo.Commits.Len()
|
||||
ctx.Data["Username"] = headUser.Name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue