summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-25 02:52:25 +0800
committerUnknwon <u@gogs.io>2015-07-25 02:52:25 +0800
commit1ba837a0556b2fb77f68248bf36ffe19603f0add (patch)
tree18a8667321bc4ba40cb532f44cc7aa20d33855b9 /modules/setting
parent54b58e988d4fac4a3f67feef39d62134352fb07c (diff)
downloadgitea-1ba837a0556b2fb77f68248bf36ffe19603f0add.tar.gz
gitea-1ba837a0556b2fb77f68248bf36ffe19603f0add.zip
new issue and label page
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 1c297db7df..b2ab3b460b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -82,9 +82,11 @@ var (
}
// Repository settings.
- RepoRootPath string
- ScriptType string
- IssuePagingNum int = 10
+ RepoRootPath string
+ ScriptType string
+
+ // UI settings.
+ IssuePagingNum int
// Picture settings.
PictureService string
@@ -311,6 +313,9 @@ func NewConfigContext() {
}
ScriptType = sec.Key("SCRIPT_TYPE").MustString("bash")
+ // UI settings.
+ IssuePagingNum = Cfg.Section("ui").Key("ISSUE_PAGING_NUM").MustInt(10)
+
sec = Cfg.Section("picture")
PictureService = sec.Key("SERVICE").In("server", []string{"server"})
AvatarUploadPath = sec.Key("AVATAR_UPLOAD_PATH").MustString("data/avatars")