浏览代码

pull: fix split view on pull request page (#3695)

Unknwon 8 年之前
父节点
当前提交
0c8c1ee96f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      routers/repo/pull.go

+ 1 - 0
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)
 }