From ef1a146becd122b186ddaafec19eab4919f4a0ab Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 28 Nov 2025 18:39:38 +0100 Subject: [PATCH] enable ShowRepoAvatar on repo lists --- templates/repo/icon.tmpl | 2 +- templates/shared/repo/list.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/icon.tmpl b/templates/repo/icon.tmpl index 05d32d371f..68959317c0 100644 --- a/templates/repo/icon.tmpl +++ b/templates/repo/icon.tmpl @@ -10,7 +10,7 @@ {{$avatarLink := (.Repo.RelAvatarLink ctx)}} {{if .ShowRepoOwnerAvatar}} - {{ctx.AvatarUtils.Avatar .Repo.Owner 24}} + {{ctx.AvatarUtils.Avatar .Repo.Owner $size}} {{else if and $avatarLink .ShowRepoAvatar}} {{else if .Repo.IsMirror}} diff --git a/templates/shared/repo/list.tmpl b/templates/shared/repo/list.tmpl index 7f30805e88..46e0c5b8fe 100644 --- a/templates/shared/repo/list.tmpl +++ b/templates/shared/repo/list.tmpl @@ -2,7 +2,7 @@ {{range .Repos}}
- {{template "repo/icon" (dict "Repo" . "Size" 24 "ShowRepoOwnerAvatar" $.ShowRepoOwnerAvatar)}} + {{template "repo/icon" (dict "Repo" . "Size" 24 "ShowRepoOwnerAvatar" $.ShowRepoOwnerAvatar "ShowRepoAvatar" true)}}