summaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-11 00:09:28 +0800
committerUnknwon <u@gogs.io>2015-08-11 00:09:28 +0800
commitf183c855d1e364511ec12408010343c40d5c8cb1 (patch)
treeab79fc5f6f420754c3c646e745aabf652ea4848c /templates/user/profile.tmpl
parent1ce4543a9462a91dc81d5a5dd140906937f63c9d (diff)
downloadgitea-f183c855d1e364511ec12408010343c40d5c8cb1.tar.gz
gitea-f183c855d1e364511ec12408010343c40d5c8cb1.zip
minor fix on #1464
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r--templates/user/profile.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index c799bedc2b..94a6114894 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -4,9 +4,9 @@
<div id="user-profile-page" class="container clear">
<div class="grid-1-5 left">
<div>
- {{if and (.Owner.UseCustomAvatar) (eq .SignedUser.Id .Owner.Id)}}
+ {{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}}
<a href="{{AppSubUrl}}/user/settings" id="profile-avatar" original-title="{{.i18n.Tr "user.change_custom_avatar"}}">
- {{else if eq .SignedUser.Id .Owner.Id}}
+ {{else if eq .SignedUserName .Owner.Name}}
<a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}">
{{else}}
<a href="{{.Owner.AvatarLink}}?s=234" id="profile-avatar">