mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 12:59:11 -05:00
Fix template error on account page (#8562)
This commit is contained in:
parent
0a004a69cd
commit
240f46a422
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
|
||||||
ctx.Data["Title"] = ctx.Tr("settings")
|
ctx.Data["Title"] = ctx.Tr("settings")
|
||||||
ctx.Data["PageIsSettingsAccount"] = true
|
ctx.Data["PageIsSettingsAccount"] = true
|
||||||
ctx.Data["Email"] = ctx.User.Email
|
ctx.Data["Email"] = ctx.User.Email
|
||||||
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
|
|
||||||
|
|
||||||
loadAccountData(ctx)
|
loadAccountData(ctx)
|
||||||
|
|
||||||
|
@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.Data["Emails"] = emails
|
ctx.Data["Emails"] = emails
|
||||||
|
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue