diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-24 09:32:30 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-24 09:32:30 -0400 |
commit | 1b3af2f6c692056b9fe59dcddb88eb445863cb93 (patch) | |
tree | fdff78e02c7e9a2fa8908f94ed82191023e5463f /routers/repo/commit.go | |
parent | 8aec5e16c4cb7fb045088b04781ef307558a33c3 (diff) | |
parent | 19de20c2f84d115a4cab405305f2676c839a9ac3 (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") +} |