Browse Source

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

tags/v1.2.0-rc1
Unknwon 9 years ago
parent
commit
372a341e17
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/pull.go

+ 1
- 0
routers/repo/pull.go View File

@@ -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


Loading…
Cancel
Save