mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-12 04:02:32 +00:00
feat(ui): show size constraints of custom avatar (#7998)
Closes #7862 This adds a note for the user profile settings page about the avatar constraints. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7998 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Thomas Böhler <witcher@wiredspace.de> Co-committed-by: Thomas Böhler <witcher@wiredspace.de>
This commit is contained in:
parent
6cdf2cd66e
commit
53d5e6d754
10 changed files with 65 additions and 0 deletions
|
@ -313,6 +313,9 @@ func editUserCommon(ctx *context.Context) {
|
|||
ctx.Data["DisableMigrations"] = setting.Repository.DisableMigrations
|
||||
ctx.Data["AllowedUserVisibilityModes"] = setting.Service.AllowedUserVisibilityModesSlice.ToVisibleTypeSlice()
|
||||
ctx.Data["DisableGravatar"] = setting.Config().Picture.DisableGravatar.Value(ctx)
|
||||
ctx.Data["MaxAvatarFileSize"] = setting.Avatar.MaxFileSize
|
||||
ctx.Data["MaxAvatarWidth"] = setting.Avatar.MaxWidth
|
||||
ctx.Data["MaxAvatarHeight"] = setting.Avatar.MaxHeight
|
||||
}
|
||||
|
||||
// EditUser show editing user page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue