diff options
author | Mathieu Gagnon <mathieu@gagnon.name> | 2014-09-13 03:52:51 -0400 |
---|---|---|
committer | Mathieu Gagnon <mathieu@gagnon.name> | 2014-09-13 03:52:51 -0400 |
commit | 3549fb0ea8c4e039ec55caf90e8cabf78cde87a2 (patch) | |
tree | 999b5b230a68128b416c4f79e189311344f216d1 | |
parent | a2cac952a411ab1d1159bdaaf144fbb39a355010 (diff) | |
download | gitea-3549fb0ea8c4e039ec55caf90e8cabf78cde87a2.tar.gz gitea-3549fb0ea8c4e039ec55caf90e8cabf78cde87a2.zip |
Remove APP_LOGO setting
-rw-r--r-- | conf/app.ini | 1 | ||||
-rw-r--r-- | modules/mailer/mail.go | 1 | ||||
-rw-r--r-- | modules/setting/setting.go | 2 | ||||
-rw-r--r-- | routers/dev/template.go | 1 | ||||
-rw-r--r-- | templates/mail/auth/active.tmpl | 2 | ||||
-rw-r--r-- | templates/mail/auth/register_success.tmpl | 2 | ||||
-rw-r--r-- | templates/mail/auth/reset_passwd.tmpl | 2 |
7 files changed, 3 insertions, 8 deletions
diff --git a/conf/app.ini b/conf/app.ini index 3e7e191c30..be49e06411 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -1,6 +1,5 @@ ; App name that shows on every page title APP_NAME = Gogs: Go Git Service -APP_LOGO = img/favicon.png ; Change it if you run locally RUN_USER = git ; Either "dev", "prod" or "test", default is "dev" diff --git a/modules/mailer/mail.go b/modules/mailer/mail.go index 5a662b9010..6c73e7e58f 100644 --- a/modules/mailer/mail.go +++ b/modules/mailer/mail.go @@ -45,7 +45,6 @@ func GetMailTmplData(u *models.User) map[interface{}]interface{} { data["AppName"] = setting.AppName data["AppVer"] = setting.AppVer data["AppUrl"] = setting.AppUrl - data["AppLogo"] = setting.AppLogo data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60 data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60 if u != nil { diff --git a/modules/setting/setting.go b/modules/setting/setting.go index ebc1020a33..199b4f2c27 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -32,7 +32,6 @@ var ( // App settings. AppVer string AppName string - AppLogo string AppUrl string // Server settings. @@ -155,7 +154,6 @@ func NewConfigContext() { } AppName = Cfg.MustValue("", "APP_NAME", "Gogs: Go Git Service") - AppLogo = Cfg.MustValue("", "APP_LOGO", "img/favicon.png") AppUrl = Cfg.MustValue("server", "ROOT_URL", "http://localhost:3000/") if AppUrl[len(AppUrl)-1] != '/' { AppUrl += "/" diff --git a/routers/dev/template.go b/routers/dev/template.go index e4f2429ae9..9528c74c64 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -16,7 +16,6 @@ func TemplatePreview(ctx *middleware.Context) { ctx.Data["AppName"] = setting.AppName ctx.Data["AppVer"] = setting.AppVer ctx.Data["AppUrl"] = setting.AppUrl - ctx.Data["AppLogo"] = setting.AppLogo ctx.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374" ctx.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60 ctx.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60 diff --git a/templates/mail/auth/active.tmpl b/templates/mail/auth/active.tmpl index 72d9948bd4..b9dacc7575 100644 --- a/templates/mail/auth/active.tmpl +++ b/templates/mail/auth/active.tmpl @@ -9,7 +9,7 @@ <div style="width:600px;margin:0 auto; padding:40px 0 20px;"> <div style="border:1px solid #d9d9d9;border-radius:3px; background:#fff; box-shadow: 0px 2px 5px rgba(0, 0, 0,.05); -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0,.05);"> <div style="padding: 20px 15px;"> - <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/{{.AppLogo}}" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> + <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/img/favicon.png" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> <div style="padding:40px 15px;"> <div style="font-size:16px; padding-bottom:30px; font-weight:bold;"> Hi <span style="color: #00BFFF;">{{.User.Name}}</span>, diff --git a/templates/mail/auth/register_success.tmpl b/templates/mail/auth/register_success.tmpl index ffbe2c9732..5e4cb84ba6 100644 --- a/templates/mail/auth/register_success.tmpl +++ b/templates/mail/auth/register_success.tmpl @@ -9,7 +9,7 @@ <div style="width:600px;margin:0 auto; padding:40px 0 20px;"> <div style="border:1px solid #d9d9d9;border-radius:3px; background:#fff; box-shadow: 0px 2px 5px rgba(0, 0, 0,.05); -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0,.05);"> <div style="padding: 20px 15px;"> - <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/{{.AppLogo}}" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> + <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/img/favicon.png" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> <div style="padding:40px 15px;"> <div style="font-size:16px; padding-bottom:30px; font-weight:bold;"> Hi <span style="color: #00BFFF;">{{.User.Name}}</span>, this is your registration email for {{.AppName}}! diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl index c85fc61798..bf0b9cd3ec 100644 --- a/templates/mail/auth/reset_passwd.tmpl +++ b/templates/mail/auth/reset_passwd.tmpl @@ -9,7 +9,7 @@ <div style="width:600px;margin:0 auto; padding:40px 0 20px;"> <div style="border:1px solid #d9d9d9;border-radius:3px; background:#fff; box-shadow: 0px 2px 5px rgba(0, 0, 0,.05); -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0,.05);"> <div style="padding: 20px 15px;"> - <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/{{.AppLogo}}" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> + <h1 style="font-size:20px; padding:10px 0 20px; margin:0; border-bottom:1px solid #ddd;"><img src="{{.AppUrl}}/img/favicon.png" style="height: 32px; margin-bottom: -10px;"> <a style="color:#333;text-decoration:none;" target="_blank" href="{{.AppUrl}}">{{.AppName}}</a></h1> <div style="padding:40px 15px;"> <div style="font-size:16px; padding-bottom:30px; font-weight:bold;"> Hi <span style="color: #00BFFF;">{{.User.Name}}</span>, |