]> source.dussan.org Git - gitea.git/commitdiff
add issue router for new issue page ui preview
authorfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 11:03:07 +0000 (19:03 +0800)
committerfuxiaohei <fuxiaohei@vip.qq.com>
Sat, 27 Sep 2014 11:03:07 +0000 (19:03 +0800)
cmd/web.go
routers/repo/issue.go
templates/repo/issue2/list.tmpl [new file with mode: 0644]

index 8a87f86bb1edeffc951b2e5204efc79318b1e123..fc417618eb0a63a3da77bc0436d03f77eca3194b 100644 (file)
@@ -345,6 +345,7 @@ func runWeb(*cli.Context) {
                r.Get("/pulls", repo.Pulls)
                r.Get("/branches", repo.Branches)
                r.Get("/archive/*", repo.Download)
+               r.Get("/issues2/",repo.Issues2)
        }, ignSignIn, middleware.RepoAssignment(true))
 
        m.Group("/:username/:reponame", func(r *macaron.Router) {
index f854a22bbc64975c92735432ac43c89c73c7b26c..e611032e37519db94eac9f05b286022bb5b7eedd 100644 (file)
@@ -1119,3 +1119,9 @@ func IssueGetAttachment(ctx *middleware.Context) {
        // We must put the name in " manually.
        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")
+}
diff --git a/templates/repo/issue2/list.tmpl b/templates/repo/issue2/list.tmpl
new file mode 100644 (file)
index 0000000..9616199
--- /dev/null
@@ -0,0 +1,6 @@
+{{template "ng/base/head" .}}
+{{template "ng/base/header" .}}
+<div id="repo-wrapper">
+    {{template "repo/header" .}}
+</div>
+{{template "ng/base/footer" .}}
\ No newline at end of file