forked from NYANDEV/forgejo
#1577 explore paginator problem
This commit is contained in:
parent
36a69e8aa5
commit
d023e81a8f
12 changed files with 80 additions and 65 deletions
|
@ -57,7 +57,7 @@ func Explore(ctx *middleware.Context) {
|
|||
page = 1
|
||||
}
|
||||
|
||||
ctx.Data["Page"] = paginater.New(int(models.CountRepositories()), setting.ExplorePagingNum, page, 5)
|
||||
ctx.Data["Page"] = paginater.New(int(models.CountPublicRepositories()), setting.ExplorePagingNum, page, 5)
|
||||
|
||||
repos, err := models.GetRecentUpdatedRepositories(page)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue