From 256cd6374adf646a46265efe18a2d3f822bf7269 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 23 Jul 2016 23:46:49 +0800 Subject: [PATCH] #2790 fix not detect diff style in pull request file changes --- routers/repo/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 2c534f1e03..01a5102f7e 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -372,6 +372,7 @@ func ViewPullFiles(ctx *context.Context) { } headTarget := path.Join(pull.HeadUserName, pull.HeadRepo.Name) + ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split" ctx.Data["Username"] = pull.HeadUserName ctx.Data["Reponame"] = pull.HeadRepo.Name ctx.Data["IsImageFile"] = commit.IsImageFile