From 7d52bc299840fceca981e19b607b0708282639ff Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 14 Oct 2023 22:12:00 +0200 Subject: [PATCH] fix duplicated icon in repolist --- templates/explore/repo_list.tmpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 35839087433ff..681d72fccb120 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -32,10 +32,12 @@ {{end}} {{end}} - {{if .IsFork}} - {{svg "octicon-repo-forked"}} - {{else if .IsMirror}} - {{svg "octicon-mirror"}} + {{if or (.RelAvatarLink ctx) .IsTemplate .IsPrivate}} + {{if .IsFork}} + {{svg "octicon-repo-forked"}} + {{else if .IsMirror}} + {{svg "octicon-mirror"}} + {{end}} {{end}}