diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-08-30 00:25:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 18:25:16 +0200 |
commit | d985d4bc2f69439aafc8e516a3f0929d47cfb0e2 (patch) | |
tree | 1cb1bfd264c6d6ae0098ec781676162a42fc470f /modules | |
parent | f5b0e2c9d2336367dfcf121be6ff5154017192cf (diff) | |
download | gitea-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')
-rw-r--r-- | modules/setting/repository.go | 9 |
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 |