diff options
author | Unknwon <u@gogs.io> | 2015-09-11 20:42:26 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-11 20:42:26 -0400 |
commit | be89802bd8131835ed894280e75bba9f769cf575 (patch) | |
tree | e61abeedbe2079ab00f399c3b9a5501bcebc656c /modules/setting | |
parent | 247017d9ff9b9947349555cdfd566cad061564ea (diff) | |
download | gitea-be89802bd8131835ed894280e75bba9f769cf575.tar.gz gitea-be89802bd8131835ed894280e75bba9f769cf575.zip |
new admin user list UI
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index cbc2cc18e6..102e5b9593 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -91,8 +91,9 @@ var ( AnsiCharset string // UI settings. - ExplorePagingNum int - IssuePagingNum int + ExplorePagingNum int + IssuePagingNum int + AdminUserPagingNum int // Markdown sttings. Markdown struct { @@ -367,6 +368,9 @@ func NewConfigContext() { ExplorePagingNum = sec.Key("EXPLORE_PAGING_NUM").MustInt(20) IssuePagingNum = sec.Key("ISSUE_PAGING_NUM").MustInt(10) + sec = Cfg.Section("ui.admin") + AdminUserPagingNum = sec.Key("USER_PAGING_NUM").MustInt(50) + sec = Cfg.Section("picture") PictureService = sec.Key("SERVICE").In("server", []string{"server"}) AvatarUploadPath = sec.Key("AVATAR_UPLOAD_PATH").MustString("data/avatars") |