summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-03 03:55:13 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-03 19:55:13 +0800
commitab62da283aa20475109eba907324f55123d7e3c6 (patch)
treea08bb1753ff39d9ecc74afc42374ba614c67d8bb /templates
parent7bab3d2fb1d75ac29ad6a9b11203ea358b1979d3 (diff)
downloadgitea-ab62da283aa20475109eba907324f55123d7e3c6.tar.gz
gitea-ab62da283aa20475109eba907324f55123d7e3c6.zip
Fix avatar URLs (#3069)
* Fix avatar URLs * import order
Diffstat (limited to 'templates')
-rw-r--r--templates/org/header.tmpl2
-rw-r--r--templates/org/home.tmpl2
-rw-r--r--templates/org/member/members.tmpl2
-rw-r--r--templates/user/profile.tmpl4
4 files changed, 5 insertions, 5 deletions
diff --git a/templates/org/header.tmpl b/templates/org/header.tmpl
index 0192ad7d82..806682aca9 100644
--- a/templates/org/header.tmpl
+++ b/templates/org/header.tmpl
@@ -3,7 +3,7 @@
<div class="ui vertically grid head">
<div class="column">
<div class="ui header">
- <img class="ui image" src="{{.RelAvatarLink}}?s=100">
+ <img class="ui image" src="{{.SizedRelAvatarLink 100}}">
<span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
<div class="ui right">
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 60749e9eb9..caef9034bb 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -3,7 +3,7 @@
<div class="ui container">
<div class="ui grid">
<div class="ui sixteen wide column">
- <img class="ui left" id="org-avatar" src="{{.Org.RelAvatarLink}}?s=140"/>
+ <img class="ui left" id="org-avatar" src="{{.Org.SizedRelAvatarLink 140}}"/>
<div id="org-info">
<div class="ui header">
{{.Org.DisplayName}}
diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl
index e47008c89a..7f0a763610 100644
--- a/templates/org/member/members.tmpl
+++ b/templates/org/member/members.tmpl
@@ -8,7 +8,7 @@
{{range .Members}}
<div class="item ui grid">
<div class="ui one wide column">
- <img class="ui avatar" src="{{.RelAvatarLink}}?s=48">
+ <img class="ui avatar" src="{{.SizedRelAvatarLink 48}}">
</div>
<div class="ui three wide column">
<div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 60355de060..22a7f96eda 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/avatar" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
- <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/>
+ <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
</a>
{{else}}
<span class="image">
- <img src="{{.Owner.RelAvatarLink}}?s=290" title="{{.Owner.Name}}"/>
+ <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
</span>
{{end}}
<div class="content">