We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f89417 commit 6b7e860Copy full SHA for 6b7e860
routers/web/user/setting/account.go
@@ -35,6 +35,7 @@ func Account(ctx *context.Context) {
35
ctx.Data["Title"] = ctx.Tr("settings")
36
ctx.Data["PageIsSettingsAccount"] = true
37
ctx.Data["Email"] = ctx.User.Email
38
+ ctx.Data["EnableNotifyMail"] = setting.Service.EnableNotifyMail
39
40
loadAccountData(ctx)
41
templates/user/settings/account.tmpl
@@ -43,6 +43,7 @@
43
</h4>
44
<div class="ui attached segment">
45
<div class="ui email list">
46
+ {{if $.EnableNotifyMail}}
47
<div class="item">
48
<form action="{{AppSubUrl}}/user/settings/account/email" class="ui form" method="post">
49
{{.i18n.Tr "settings.email_desc"}}
@@ -69,6 +70,7 @@
69
70
</div>
71
</form>
72
73
+ {{end}}
74
{{range .Emails}}
75
76
{{if not .IsPrimary}}
0 commit comments