Test pagination of repo stars, watchers and forks

based on code suggested in https://codeberg.org/forgejo/forgejo/pulls/2584#issuecomment-1647897 and https://codeberg.org/forgejo/forgejo/pulls/2584#issuecomment-1655289

Co-authored-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
0ko 2024-03-10 17:15:59 +05:00
parent 498a3f988d
commit b2bc233517
2 changed files with 85 additions and 2 deletions

View file

@ -24,10 +24,10 @@ var RecognisedRepositoryDownloadOrCloneMethods = []string{"download-zip", "downl
// MaxUserCardsPerPage sets maximum amount of watchers and stargazers shown per page
// those pages use 2 or 3 column layout, so the value should be divisible by 2 and 3
const MaxUserCardsPerPage = 36
var MaxUserCardsPerPage = 36
// MaxForksPerPage sets maximum amount of forks shown per page
const MaxForksPerPage = 40
var MaxForksPerPage = 40
// Repository settings
var (