Explorar o código

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

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