summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-26 20:02:04 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-26 20:02:04 +0800
commitf5c9149dd52c0cf058a730fd9c912880638b02d8 (patch)
tree4ab2a0f5f91c25cb483eb76ea62baf54d05a1c0b
parent78979c6d4c1408910cf12546b26d727752c62250 (diff)
downloadgitea-f5c9149dd52c0cf058a730fd9c912880638b02d8.tar.gz
gitea-f5c9149dd52c0cf058a730fd9c912880638b02d8.zip
add issue toolbar flag
-rw-r--r--routers/repo/issue.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 242593ff29..f7728273d0 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -62,6 +62,7 @@ func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.Creat
ctx.Data["Title"] = "Create issue"
ctx.Data["IsRepoToolbarIssues"] = true
+ ctx.Data["IsRepoToolbarIssuesList"] = false
if ctx.Req.Method == "GET" {
ctx.HTML(200, "issue/create")
@@ -118,6 +119,8 @@ func ViewIssue(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = issue.Name
ctx.Data["Issue"] = issue
+ ctx.Data["IsRepoToolbarIssues"] = true
+ ctx.Data["IsRepoToolbarIssuesList"] = false
ctx.HTML(200, "issue/view")
}