We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31842f1 commit 2dcea78Copy full SHA for 2dcea78
routers/web/repo/commit.go
@@ -83,7 +83,7 @@ func Commits(ctx *context.Context) {
83
ctx.Data["CommitCount"] = commitsCount
84
ctx.Data["RefName"] = ctx.Repo.RefName
85
86
- pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
+ pager := context.NewPagination(int(commitsCount), pageSize, page, 5)
87
pager.SetDefaultParams(ctx)
88
ctx.Data["Page"] = pager
89
0 commit comments