mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-21 22:53:54 +08:00
Apply suggestions from code review
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
f41b8fb9f1
commit
58d7e4f318
|
@ -607,7 +607,7 @@ func (issues IssueList) BlockingDependenciesMap(ctx context.Context) (issueDepsM
|
|||
Table("issue").
|
||||
Join("INNER", "repository", "repository.id = issue.repo_id").
|
||||
Join("INNER", "issue_dependency", "issue_dependency.issue_id = issue.id").
|
||||
Where(builder.In("dependency_id", issues.getIssueIDs())).
|
||||
Where(builder.In("issue_dependency.dependency_id", issues.getIssueIDs())).
|
||||
// sort by repo id then created date
|
||||
Asc("issue.repo_id").
|
||||
Asc("issue.created_unix").
|
||||
|
@ -633,7 +633,7 @@ func (issues IssueList) BlockedByDependenciesMap(ctx context.Context) (issueDeps
|
|||
Table("issue").
|
||||
Join("INNER", "repository", "repository.id = issue.repo_id").
|
||||
Join("INNER", "issue_dependency", "issue_dependency.dependency_id = issue.id").
|
||||
Where(builder.In("issue_id", issues.getIssueIDs())).
|
||||
Where(builder.In("issue_dependency.issue_id", issues.getIssueIDs())).
|
||||
// sort by repo id then created date
|
||||
Asc("issue.repo_id").
|
||||
Asc("issue.created_unix").
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{if .Dependencies}}
|
||||
<div class="flex-text-inline">
|
||||
{{(ctx.Locale.Tr .TitleKey .Dependencies) | Safe}}
|
||||
{{ctx.Locale.Tr .TitleKey .Dependencies}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user