aboutsummaryrefslogtreecommitdiff
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
parent5ff6eedf5edaae0748aa0a80d682a441bbbb556d (diff)
#2180 fix avatar link when disable gravatar
-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 f571f3a0..476b45dd 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>