mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 22:01:44 +02:00
Fix #285
This commit is contained in:
1 parent
63cc14062a
commit
0f907301b7
9 files changed
+48
-15
No files matched your search
@@ -163,7 +163,7 @@ func Users(ctx *middleware.Context) {
|
||||
if p < 1 {
|
||||
p = 1
|
||||
}
|
||||
pageNum := 100
|
||||
pageNum := 50
|
||||
count := models.CountUsers()
|
||||
curCount := int64((p-1)*pageNum + pageNum)
|
||||
if curCount > count {
|
||||
@@ -192,7 +192,7 @@ func Repositories(ctx *middleware.Context) {
|
||||
if p < 1 {
|
||||
p = 1
|
||||
}
|
||||
pageNum := 2
|
||||
pageNum := 50
|
||||
count := models.CountRepositories()
|
||||
curCount := int64((p-1)*pageNum + pageNum)
|
||||
if curCount > count {
|
||||
|
||||
Reference in new issue
Block a user