aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/user
diff options
context:
space:
mode:
authorKerwin Bryant <kerwin612@qq.com>2025-02-06 21:07:44 +0800
committerGitHub <noreply@github.com>2025-02-06 21:07:44 +0800
commit40426addfa15226c72386346ee08d1577d00b263 (patch)
tree22d5eb41c98ededb9dd21a186bfef228be4659fd /templates/admin/user
parent943cc4f98952431c4e95a62301d56bcc7b708338 (diff)
downloadgitea-40426addfa15226c72386346ee08d1577d00b263.tar.gz
gitea-40426addfa15226c72386346ee08d1577d00b263.zip
Add cropping support when modifying the user/org/repo avatar (#33498)
Fixed #33321 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/admin/user')
-rw-r--r--templates/admin/user/edit.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index d591a645d8..c04d332660 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -195,8 +195,7 @@
</div>
<div class="inline field tw-pl-4">
- <label for="avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label>
- <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp">
+ {{template "shared/avatar_upload_crop" dict "LabelText" (ctx.Locale.Tr "settings.choose_new_avatar")}}
</div>
<div class="field">