Browse Source

add issue toolbar flag

for-closed-social
FuXiaoHei 10 years ago
parent
commit
f5c9149dd5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/issue.go

+ 3
- 0
routers/repo/issue.go View File

@ -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")
}

Loading…
Cancel
Save