Explorar o código

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

Unknwon %!s(int64=8) %!d(string=hai) anos
pai
achega
256cd6374a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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