mirror of
https://github.com/go-gitea/gitea
synced 2024-09-11 17:06:58 +02:00
Fix paginater length (#1866)
This commit is contained in:
parent
a97d6bf24b
commit
817a405118
@ -107,7 +107,7 @@ func Releases(ctx *context.Context) {
|
|||||||
releasesToDisplay = append(releasesToDisplay, r)
|
releasesToDisplay = append(releasesToDisplay, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
pager := paginater.New(len(releases), limit, page, 5)
|
pager := paginater.New(len(releasesToDisplay), limit, page, 5)
|
||||||
ctx.Data["Page"] = pager
|
ctx.Data["Page"] = pager
|
||||||
ctx.Data["Releases"] = releasesToDisplay
|
ctx.Data["Releases"] = releasesToDisplay
|
||||||
ctx.HTML(200, tplReleases)
|
ctx.HTML(200, tplReleases)
|
||||||
|
Loading…
Reference in New Issue
Block a user