summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 19:03:07 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 19:03:07 +0800
commit7d48f811f16d3565f161a44e4e98c451cf6c857e (patch)
tree8855c895060e3fec25777dbc2fbe0f9fa09cdbb8
parente3a27aeb25f5de7daaf279ec049830628e2cc3a6 (diff)
downloadgitea-7d48f811f16d3565f161a44e4e98c451cf6c857e.tar.gz
gitea-7d48f811f16d3565f161a44e4e98c451cf6c857e.zip
add issue router for new issue page ui preview
-rw-r--r--cmd/web.go1
-rw-r--r--routers/repo/issue.go6
-rw-r--r--templates/repo/issue2/list.tmpl6
3 files changed, 13 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 8a87f86bb1..fc417618eb 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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) {
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index f854a22bbc..e611032e37 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -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
index 0000000000..9616199e19
--- /dev/null
+++ b/templates/repo/issue2/list.tmpl
@@ -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