summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-08-30 00:25:16 +0800
committerGitHub <noreply@github.com>2021-08-29 18:25:16 +0200
commitd985d4bc2f69439aafc8e516a3f0929d47cfb0e2 (patch)
tree1cb1bfd264c6d6ae0098ec781676162a42fc470f /modules/setting
parentf5b0e2c9d2336367dfcf121be6ff5154017192cf (diff)
downloadgitea-d985d4bc2f69439aafc8e516a3f0929d47cfb0e2.tar.gz
gitea-d985d4bc2f69439aafc8e516a3f0929d47cfb0e2.zip
Paginate releases page & set default page size to 10 (#16857)
* Add release default page and set it to 10 * use limit Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/repository.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index c2a6357d94..f981809427 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -87,7 +87,8 @@ var (
} `ini:"repository.issue"`
Release struct {
- AllowedTypes string
+ AllowedTypes string
+ DefaultPagingNum int
} `ini:"repository.release"`
Signing struct {
@@ -223,9 +224,11 @@ var (
},
Release: struct {
- AllowedTypes string
+ AllowedTypes string
+ DefaultPagingNum int
}{
- AllowedTypes: "",
+ AllowedTypes: "",
+ DefaultPagingNum: 10,
},
// Signing settings