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:
parent
498a3f988d
commit
b2bc233517
2 changed files with 85 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue