aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/single.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-17 13:12:28 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-17 13:12:28 +0800
commitc101471bdfd0a802e66adfb7402dbd980812da30 (patch)
tree0f1187da123cb1d978ef4331dd5dc11e4f023a41 /routers/repo/single.go
parentcc3cbf8cbee4b28902abc7fccee60499bd4c1246 (diff)
ui update, repo-assignment panic bug fix
Diffstat (limited to 'routers/repo/single.go')
-rw-r--r--routers/repo/single.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/repo/single.go b/routers/repo/single.go
index 6bf03ca2..3541dac9 100644
--- a/routers/repo/single.go
+++ b/routers/repo/single.go
@@ -46,7 +46,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
ctx.Data["Paths"] = Paths
ctx.Data["Treenames"] = treenames
ctx.Data["IsRepoToolbarSource"] = true
- ctx.Data["IsRepositoryOwner"] = strings.ToLower(params["username"]) == ctx.User.LowerName
ctx.Data["Files"] = files
ctx.Render.HTML(200, "repo/single", ctx.Data)
}
@@ -63,7 +62,6 @@ func Setting(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = title + " - settings"
ctx.Data["IsRepoToolbarSetting"] = true
- ctx.Data["IsRepositoryOwner"] = strings.ToLower(params["username"]) == ctx.User.LowerName
ctx.Render.HTML(200, "repo/setting", ctx.Data)
}