Browse Source

#2790 fix not detect diff style in pull request file changes

Unknwon 8 năm trước cách đây
mục cha
commit
256cd6374a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      routers/repo/pull.go

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