summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-24 18:38:12 -0400
committerUnknwon <u@gogs.io>2015-03-24 18:38:12 -0400
commitcaf7618ea6771823e4954941ebf9d6227c4f48df (patch)
tree22565d43ad51664e7b7935cd46cfc1801f02fc2d /templates/user
parent6f81c05dde2def51c30a97f65f901ae45c971e05 (diff)
downloadgitea-caf7618ea6771823e4954941ebf9d6227c4f48df.tar.gz
gitea-caf7618ea6771823e4954941ebf9d6227c4f48df.zip
#1098 Hide gravatar email field if gravatar is disabled (or offline mode)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/settings/profile.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index febf523704..2fd6c7b2a5 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -46,10 +46,12 @@
<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">
<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>