diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 21:27:19 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-24 21:27:19 +0800 |
commit | 5e22f1437ac2466d599c242fd5e256180fa7b68e (patch) | |
tree | e3c4330ff3a48b792e4e8169f312b87e07fceb4e /routers/repo/commit.go | |
parent | 137538e54b3aade46cf2ef947707f4e32ba8a382 (diff) | |
download | gitea-5e22f1437ac2466d599c242fd5e256180fa7b68e.tar.gz gitea-5e22f1437ac2466d599c242fd5e256180fa7b68e.zip |
diff page ui
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 60ee2177f3..e038998f94 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") +} |