aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-26 11:00:22 -0400
committerUnknwon <u@gogs.io>2015-03-26 11:00:22 -0400
commitd76f11c6f14b69bf981e5fc3901cc2c6445773b8 (patch)
treeddd7fb903f7b7e9f1530dd6009b052cdd6c22e0e /templates/user
parent27dbb6096548759fc587181c3a5ef69051890ddf (diff)
downloadgitea-d76f11c6f14b69bf981e5fc3901cc2c6445773b8.tar.gz
gitea-d76f11c6f14b69bf981e5fc3901cc2c6445773b8.zip
fix #1156
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/profile.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index 2fd6c7b2a5..9ed92babcb 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -46,12 +46,10 @@
<label for="location">{{.i18n.Tr "settings.location"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.SignedUser.Location}}" />
</div>
- {{if not DisableGravatar}}
- <div class="field">
+ <div class="field {{if DisableGravatar}}hide{{end}}">
<label class="req" for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.SignedUser.AvatarEmail}}" />
</div>
- {{end}}
<div class="field">
<label></label>
<button class="btn btn-green btn-large btn-radius" id="change-username-btn" href="#change-username-modal">{{.i18n.Tr "settings.update_profile"}}</button>