mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add an option to create new issues from "/issues" page (#20650)
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -99,6 +99,9 @@
 | 
			
		||||
								<a class="{{if eq .SortType "farduedate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=farduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.issues.filter_sort.farduedate"}}</a>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
						{{if .SingleRepoLink}}
 | 
			
		||||
							<a class="ui green button" href="{{.SingleRepoLink}}/issues/new/choose">{{.locale.Tr "repo.issues.new"}}</a>
 | 
			
		||||
						{{end}}
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
				{{template "shared/issuelist" mergeinto . "listType" "dashboard"}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user