aboutsummaryrefslogtreecommitdiff
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-23 13:12:28 -0500
committerUnknwon <u@gogs.io>2017-02-23 13:12:28 -0500
commit0c8c1ee96ffb5479cd42c3e458a5bd59244bbd88 (patch)
treec0a2e07ad3026bbc861048cafafeb6d9b181a710 /routers/repo
parent7d80c5a7223d793a8ee73aa8ba7928e5b68176c0 (diff)
pull: fix split view on pull request page (#3695)
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index faf3b789..49f25260 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)
}