summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorThiago Avelino <thiago@avelino.xxx>2017-01-01 00:51:10 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-01 10:51:10 +0800
commit787fda53efc65916294caa6faf4aa8ecaf6cf86c (patch)
tree73fcabf10a76b18b0aa53d1dee0e40883a8d2586 /modules
parenta09a3dcabb566785208edb0df85a76c0303d4d52 (diff)
downloadgitea-787fda53efc65916294caa6faf4aa8ecaf6cf86c.tar.gz
gitea-787fda53efc65916294caa6faf4aa8ecaf6cf86c.zip
UI config to toggle whether user email shows up in Explore Users (#336)
* UI config to toggle whether user email shows up in Explore Users * Recommendation made by @tboerger https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732 * fixed typo, rename ShowUserEmailInExplore to ShowUserEmail * Fixed typo merged conflict * Hide email in the user profile page if you are active ShowUserEmail ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725 * Please replace MustBool() with MustBool(true)
Diffstat (limited to 'modules')
-rw-r--r--modules/setting/setting.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 4acac07ef7..9a8a52e195 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -203,6 +203,7 @@ var (
FeedMaxCommitNum int
ThemeColorMetaTag string
MaxDisplayFileSize int64
+ ShowUserEmail bool
Admin struct {
UserPagingNum int
@@ -820,6 +821,8 @@ please consider changing to GITEA_CUSTOM`)
ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool(true)
ShowFooterTemplateLoadTime = Cfg.Section("other").Key("SHOW_FOOTER_TEMPLATE_LOAD_TIME").MustBool(true)
+ UI.ShowUserEmail = Cfg.Section("ui").Key("SHOW_USER_EMAIL").MustBool(true)
+
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))
}