aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 18:27:29 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-25 18:27:29 +0800
commit6e33e54e71cdb6a100b9048bd6d9567fea2e7c91 (patch)
tree6b920a74a9af47562f64a387841075e5db310c97
parent7f6126dd04142c23fe5565a4c1f8cd8c93158460 (diff)
add issue-create template file
-rw-r--r--routers/repo/issue.go1
-rw-r--r--templates/issue/create.tmpl10
-rw-r--r--templates/repo/issues.tmpl1
3 files changed, 12 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index e03f115e..d54582a2 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 00000000..e71843e6
--- /dev/null
+++ b/templates/issue/create.tmpl
@@ -0,0 +1,10 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+{{template "repo/nav" .}}
+{{template "repo/toolbar" .}}
+<div id="gogs-body" class="container">
+ <div id="gogs-source">
+ new-issues
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file
diff --git a/templates/repo/issues.tmpl b/templates/repo/issues.tmpl
index daacc089..bf23ff83 100644
--- a/templates/repo/issues.tmpl
+++ b/templates/repo/issues.tmpl
@@ -4,6 +4,7 @@
{{template "repo/toolbar" .}}
<div id="gogs-body" class="container">
<div id="gogs-source">
+ issues
</div>
</div>
{{template "base/footer" .}} \ No newline at end of file