diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-21 12:51:36 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-21 12:51:36 -0500 |
commit | ef275ebf62608b1bd2c7e48862e723cd822d93c2 (patch) | |
tree | 1ff4e8cd2a7b85b85b19d03855cb51e6327c3e8a /templates | |
parent | 22ab4fa1b0bdbea10979ae87568452b5bbf9b6af (diff) | |
download | gitea-ef275ebf62608b1bd2c7e48862e723cd822d93c2.tar.gz gitea-ef275ebf62608b1bd2c7e48862e723cd822d93c2.zip |
more on change avatar
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/profile.tmpl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 85db6f8951..827586faea 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -59,12 +59,17 @@ <form class="form form-align" id="user-profile-form" action="{{AppSubUrl}}/user/settings/avatar" method="post" enctype="multipart/form-data"> {{.CsrfTokenHtml}} <div class="field"> + <label for="enable">{{.i18n.Tr "settings.enable_custom_avatar"}}</label> + <input class="ipt-chk" id="enable" name="enable" type="checkbox" {{if .SignedUser.UseCustomAvatar}}checked{{end}} /> + <span>{{.i18n.Tr "settings.enable_custom_avatar_helper"}}</span> + </div> + <div class="field"> <label>{{.i18n.Tr "settings.choose_new_avatar"}}</label> - <input name="avatar" type="file" required /> + <input name="avatar" type="file" /> </div> <div class="field"> <label></label> - <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.upload_avatar"}}</button> + <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.update_avatar"}}</button> </div> </form> </div> |