diff options
author | Unknwon <u@gogs.io> | 2015-12-19 22:21:00 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-19 22:21:00 -0500 |
commit | cadf03db68bee141f55a0a26d68efc5870e66ead (patch) | |
tree | cb0a404ff15f68c7ac14f7ea474b0783740ce928 | |
parent | 5ff6eedf5edaae0748aa0a80d682a441bbbb556d (diff) | |
download | gitea-cadf03db68bee141f55a0a26d68efc5870e66ead.tar.gz gitea-cadf03db68bee141f55a0a26d68efc5870e66ead.zip |
#2180 fix avatar link when disable gravatar
-rw-r--r-- | templates/user/profile.tmpl | 2 |
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> |