diff options
author | skyblue <ssx205@gmail.com> | 2014-03-24 23:09:18 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-03-24 23:09:18 +0800 |
commit | e75ab8cdbd62426157c23e86259a9167748d1dca (patch) | |
tree | 1fc190552549e8f36169c24c991e4ca2c350f468 /routers/repo/commit.go | |
parent | 6e972afb1563d1eb585c9900e3c85330726d5b50 (diff) | |
parent | 0e28dcdac402b3bfc8336fe250e3418939467208 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 60ee2177..e038998f 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -33,3 +33,9 @@ func Commits(ctx *middleware.Context, params martini.Params) { ctx.Data["Commits"] = commits ctx.HTML(200, "repo/commits") } + +func Diff(ctx *middleware.Context,params martini.Params){ + ctx.Data["Title"] = "commit-sha" + ctx.Data["IsRepoToolbarCommits"] = true + ctx.HTML(200,"repo/diff") +} |