aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-23 10:19:19 -0400
committerUnknwon <u@gogs.io>2015-03-23 10:19:19 -0400
commit2bb982dada0012d59ead783aaf90e730351171cc (patch)
tree329bd89296092d68680cf99223900d46e338eff7 /modules/setting
parentade343f6dc2fda5d988ddb00c3a8460dd64bc42a (diff)
downloadgitea-2bb982dada0012d59ead783aaf90e730351171cc.tar.gz
gitea-2bb982dada0012d59ead783aaf90e730351171cc.zip
#1080: Remove footer ads/branding from default template
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 790014071b..462e838456 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -130,6 +130,9 @@ var (
// I18n settings.
Langs, Names []string
+ // Other settings.
+ ShowFooterBranding bool
+
// Global setting objects.
Cfg *ini.File
CustomPath string // Custom directory path.
@@ -327,6 +330,8 @@ func NewConfigContext() {
Langs = Cfg.Section("i18n").Key("LANGS").Strings(",")
Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
+ ShowFooterBranding = Cfg.Section("other").Key("SHOW_FOOTER_BRANDING").MustBool()
+
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))
}