0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-21 18:54:39 +02:00
This commit is contained in:
NorthRealm 2025-07-09 03:12:42 +08:00
parent 8e6ee8e9a7
commit e00af17b2f
2 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ func Notifications(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("notifications")
ctx.Data["PageIsSettingsNotifications"] = true
ctx.Data["EmailNotificationsPreference"] = ctx.Doer.EmailNotificationsPreference
ctx.Data["EnableNotifyMail"] = setting.Service.EnableNotifyMail
ctx.HTML(http.StatusOK, tplSettingsNotifications)
}

View File

@ -686,7 +686,7 @@ func registerWebRoutes(m *web.Router) {
m.Get("", user_setting.BlockedUsers)
m.Post("", web.Bind(forms.BlockUserForm{}), user_setting.BlockedUsersPost)
})
}, reqSignIn, ctxDataSet("PageIsUserSettings", true, "EnablePackages", setting.Packages.Enabled))
}, reqSignIn, ctxDataSet("PageIsUserSettings", true, "EnablePackages", setting.Packages.Enabled, "EnableNotifyMail", setting.Service.EnableNotifyMail))
m.Group("/user", func() {
m.Get("/activate", auth.Activate)