Add an option to create new issues from "/issues" page (#20650)

This commit is contained in:
CodeDoctor
2022-08-09 13:30:09 +02:00
committed by GitHub
parent 33b03e851f
commit 36f9ee5813
2 changed files with 9 additions and 0 deletions

View File

@ -618,6 +618,12 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
shownIssues += int(issueCountByRepo[repoID])
}
}
if len(repoIDs) == 1 {
repo := showReposMap[repoIDs[0]]
if repo != nil {
ctx.Data["SingleRepoLink"] = repo.Link()
}
}
ctx.Data["IsShowClosed"] = isShowClosed