aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-05 12:12:54 -0700
committerUnknwon <u@gogs.io>2016-08-05 12:12:54 -0700
commit50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e (patch)
tree649757ae8cac275b0501e684d1c7bb0a5ee2d7d9 /templates/user/profile.tmpl
parentdb3d393576c716dbbea500791c5f800e52c70be5 (diff)
downloadgitea-50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e.tar.gz
gitea-50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e.zip
#3348 always use relative avatar link in the template
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r--templates/user/profile.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index d84bcddd7d..4bcc92d95d 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -6,11 +6,11 @@
<div class="ui card">
{{if eq .SignedUserName .Owner.Name}}
<a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
- <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
+ <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/>
</a>
{{else}}
<span class="image">
- <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
+ <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/>
</span>
{{end}}
<div class="content">
@@ -56,7 +56,7 @@
{{if .Orgs}}
<li>
{{range .Orgs}}
- <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.AvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a>
+ <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a>
{{end}}
</li>
{{end}}