aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore
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/explore
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/explore')
-rw-r--r--templates/explore/repo_list.tmpl7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index 44f7900327..260f165b73 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -2,12 +2,7 @@
{{range .Repos}}
<div class="flex-item">
<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">
<div class="flex-item-header">