aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-08 15:29:35 +0800
committerGitHub <noreply@github.com>2023-08-08 15:29:35 +0800
commit78b2a1cc3689e1b7555bd874763eea7eb28982f9 (patch)
tree3f8ba44664b26b18ea8a4e55db9f2087b1e7d51c /templates/org
parent69130532239ee7ade82977f456c12826e1adeb1e (diff)
downloadgitea-78b2a1cc3689e1b7555bd874763eea7eb28982f9.tar.gz
gitea-78b2a1cc3689e1b7555bd874763eea7eb28982f9.zip
Remove unnecessary template helper repoAvatar (#26387)
And simplify the "repo/icon" code
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/team/repositories.tmpl7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index 698b0a91ba..ab5f6c6e75 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -30,12 +30,7 @@
{{range .Team.Repos}}
<div class="flex-item flex-item-center">
<div class="flex-item-leading">
- {{$avatar := (repoAvatar . 32)}}
- {{if $avatar}}
- {{$avatar}}
- {{else}}
- {{template "repo/icon" .}}
- {{end}}
+ {{template "repo/icon" .}}
</div>
<div class="flex-item-main">
<a class="flex-item-title text primary" href="{{$.Org.HomeLink}}/{{.Name | PathEscape}}">