From 0c8c1ee96ffb5479cd42c3e458a5bd59244bbd88 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 23 Feb 2017 13:12:28 -0500 Subject: [PATCH] pull: fix split view on pull request page (#3695) --- routers/repo/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index faf3b7899..49f25260c 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -626,6 +626,7 @@ func CompareAndPullRequest(ctx *context.Context) { return } + ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split" ctx.HTML(200, COMPARE_PULL) }