summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-08-10 23:55:43 +0800
committer无闻 <u@gogs.io>2015-08-10 23:55:43 +0800
commit9c0c16bb5ac960dd6af940a7fb609291381d0d14 (patch)
treea920c7c1d94db50a2f79a7d326c161a2815e5755 /templates/user
parentc0ebde75918e400cd8819aab869d93db0bdbfc32 (diff)
parente5146155a0bd4415cc274c6f67218293715183a2 (diff)
downloadgitea-9c0c16bb5ac960dd6af940a7fb609291381d0d14.tar.gz
gitea-9c0c16bb5ac960dd6af940a7fb609291381d0d14.zip
Merge pull request #1464 from jamesa/hide-gravatar-tooltip
Hide avatar tooltips unless you're looking at your own profile
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/profile.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index c8b7c591b8..c799bedc2b 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -4,12 +4,14 @@
<div id="user-profile-page" class="container clear">
<div class="grid-1-5 left">
<div>
- {{if .Owner.UseCustomAvatar}}
+ {{if and (.Owner.UseCustomAvatar) (eq .SignedUser.Id .Owner.Id)}}
<a href="{{AppSubUrl}}/user/settings" id="profile-avatar" original-title="{{.i18n.Tr "user.change_custom_avatar"}}">
- {{else}}
+ {{else if eq .SignedUser.Id .Owner.Id}}
<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">
{{end}}
- <img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=200"title="{{.Owner.Name}}"/>
+ <img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=234" title="{{.Owner.Name}}"/>
</a>
<div class="text-center" id="profile-name">
{{if .Owner.FullName}}<span id="profile-fullname" class="center-block">{{.Owner.FullName}}</span><br>{{end}}
@@ -17,7 +19,7 @@
</div>
</div>
<div class="profile-info">
- <hr>
+ <hr>
<ul class="list-no-style">
{{if .Owner.Location}}
<li class="list-group-item"><i class="octicon octicon-location"></i>&nbsp;&nbsp;{{.Owner.Location}}</li>