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:
6543 2024-02-22 17:13:06 +01:00 committed by Lunny Xiao
parent f41b8fb9f1
commit 58d7e4f318
2 changed files with 3 additions and 3 deletions
models/issues
templates/shared

View File

@ -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").

View File

@ -1,5 +1,5 @@
{{if .Dependencies}}
<div class="flex-text-inline">
{{(ctx.Locale.Tr .TitleKey .Dependencies) | Safe}}
{{ctx.Locale.Tr .TitleKey .Dependencies}}
</div>
{{end}}