From 8e6ee8e9a726ae1fb10ad1107581a0253402e453 Mon Sep 17 00:00:00 2001 From: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Date: Wed, 9 Jul 2025 02:59:43 +0800 Subject: [PATCH] MOVE --- routers/web/user/setting/notifications.go | 1 + templates/user/settings/notifications.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/web/user/setting/notifications.go b/routers/web/user/setting/notifications.go index 9e10568fa4..d78c7d666f 100644 --- a/routers/web/user/setting/notifications.go +++ b/routers/web/user/setting/notifications.go @@ -28,6 +28,7 @@ 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) } diff --git a/templates/user/settings/notifications.tmpl b/templates/user/settings/notifications.tmpl index 3682e3e273..d59d80444f 100644 --- a/templates/user/settings/notifications.tmpl +++ b/templates/user/settings/notifications.tmpl @@ -1,4 +1,4 @@ -{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings notifications")}} +{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings")}}