mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	add issue router for new issue page ui preview
This commit is contained in:
		@@ -345,6 +345,7 @@ func runWeb(*cli.Context) {
 | 
				
			|||||||
		r.Get("/pulls", repo.Pulls)
 | 
							r.Get("/pulls", repo.Pulls)
 | 
				
			||||||
		r.Get("/branches", repo.Branches)
 | 
							r.Get("/branches", repo.Branches)
 | 
				
			||||||
		r.Get("/archive/*", repo.Download)
 | 
							r.Get("/archive/*", repo.Download)
 | 
				
			||||||
 | 
							r.Get("/issues2/",repo.Issues2)
 | 
				
			||||||
	}, ignSignIn, middleware.RepoAssignment(true))
 | 
						}, ignSignIn, middleware.RepoAssignment(true))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	m.Group("/:username/:reponame", func(r *macaron.Router) {
 | 
						m.Group("/:username/:reponame", func(r *macaron.Router) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1119,3 +1119,9 @@ func IssueGetAttachment(ctx *middleware.Context) {
 | 
				
			|||||||
	// We must put the name in " manually.
 | 
						// We must put the name in " manually.
 | 
				
			||||||
	ctx.ServeFile(attachment.Path, "\""+attachment.Name+"\"")
 | 
						ctx.ServeFile(attachment.Path, "\""+attachment.Name+"\"")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// testing route handler for new issue ui page
 | 
				
			||||||
 | 
					// todo : move to Issue() function
 | 
				
			||||||
 | 
					func Issues2(ctx *middleware.Context){
 | 
				
			||||||
 | 
						ctx.HTML(200,"repo/issue2/list")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								templates/repo/issue2/list.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								templates/repo/issue2/list.tmpl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					{{template "ng/base/head" .}}
 | 
				
			||||||
 | 
					{{template "ng/base/header" .}}
 | 
				
			||||||
 | 
					<div id="repo-wrapper">
 | 
				
			||||||
 | 
					    {{template "repo/header" .}}
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					{{template "ng/base/footer" .}}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user