From 6e33e54e71cdb6a100b9048bd6d9567fea2e7c91 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Tue, 25 Mar 2014 18:27:29 +0800 Subject: [PATCH] add issue-create template file --- routers/repo/issue.go | 1 + templates/issue/create.tmpl | 10 ++++++++++ templates/repo/issues.tmpl | 1 + 3 files changed, 12 insertions(+) create mode 100644 templates/issue/create.tmpl diff --git a/routers/repo/issue.go b/routers/repo/issue.go index e03f115e24..d54582a2a0 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -45,6 +45,7 @@ func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.Creat } ctx.Data["Title"] = "Create issue" + ctx.Data["IsRepoToolbarIssues"] = true if ctx.Req.Method == "GET" { ctx.HTML(200, "issue/create") diff --git a/templates/issue/create.tmpl b/templates/issue/create.tmpl new file mode 100644 index 0000000000..e71843e6f0 --- /dev/null +++ b/templates/issue/create.tmpl @@ -0,0 +1,10 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +{{template "repo/nav" .}} +{{template "repo/toolbar" .}} +
+
+ new-issues +
+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/issues.tmpl b/templates/repo/issues.tmpl index daacc089c3..bf23ff83ff 100644 --- a/templates/repo/issues.tmpl +++ b/templates/repo/issues.tmpl @@ -4,6 +4,7 @@ {{template "repo/toolbar" .}}
+ issues
{{template "base/footer" .}} \ No newline at end of file