Skip to content

Commit d76f11c

Browse files
committed
fix gogs#1156
1 parent 27dbb60 commit d76f11c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/user/settings/profile.tmpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@
4646
<label for="location">{{.i18n.Tr "settings.location"}}</label>
4747
<input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.SignedUser.Location}}" />
4848
</div>
49-
{{if not DisableGravatar}}
50-
<div class="field">
49+
<div class="field {{if DisableGravatar}}hide{{end}}">
5150
<label class="req" for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label>
5251
<input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.SignedUser.AvatarEmail}}" />
5352
</div>
54-
{{end}}
5553
<div class="field">
5654
<label></label>
5755
<button class="btn btn-green btn-large btn-radius" id="change-username-btn" href="#change-username-modal">{{.i18n.Tr "settings.update_profile"}}</button>

0 commit comments

Comments
 (0)