summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-19 22:21:00 -0500
committerUnknwon <u@gogs.io>2015-12-19 22:21:00 -0500
commitcadf03db68bee141f55a0a26d68efc5870e66ead (patch)
treecb0a404ff15f68c7ac14f7ea474b0783740ce928 /templates/user
parent5ff6eedf5edaae0748aa0a80d682a441bbbb556d (diff)
downloadgitea-cadf03db68bee141f55a0a26d68efc5870e66ead.tar.gz
gitea-cadf03db68bee141f55a0a26d68efc5870e66ead.zip
#2180 fix avatar link when disable gravatar
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/profile.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index f571f3a090..476b45dd5e 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -4,7 +4,7 @@
<div class="ui grid">
<div class="ui five wide column">
<div class="ui card">
- {{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}}
+ {{if and (or .Owner.UseCustomAvatar .DisableGravatar) (eq .SignedUserName .Owner.Name)}}
<a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_custom_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
<img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
</a>