summaryrefslogtreecommitdiffstats
path: root/templates/org
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/org
parent7bab3d2fb1d75ac29ad6a9b11203ea358b1979d3 (diff)
downloadgitea-ab62da283aa20475109eba907324f55123d7e3c6.tar.gz
gitea-ab62da283aa20475109eba907324f55123d7e3c6.zip
Fix avatar URLs (#3069)
* Fix avatar URLs * import order
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/header.tmpl2
-rw-r--r--templates/org/home.tmpl2
-rw-r--r--templates/org/member/members.tmpl2
3 files changed, 3 insertions, 3 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>