mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
parent
c88547ce71
commit
420851ca1f
5 changed files with 32 additions and 19 deletions
|
@ -280,6 +280,7 @@ func Profile(ctx *context.Context) {
|
|||
pager.AddParam(ctx, "language", "Language")
|
||||
}
|
||||
ctx.Data["Page"] = pager
|
||||
ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled
|
||||
|
||||
ctx.Data["ShowUserEmail"] = len(ctx.ContextUser.Email) > 0 && ctx.IsSigned && (!ctx.ContextUser.KeepEmailPrivate || ctx.ContextUser.ID == ctx.Doer.ID)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue