0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-12 15:00:28 +01:00

enable ShowRepoAvatar on repo lists

This commit is contained in:
silverwind 2025-11-28 18:39:38 +01:00
parent fd0d451d18
commit ef1a146bec
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 2 additions and 2 deletions

View File

@ -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}}
<img class="ui avatar tw-align-middle" src="{{$avatarLink}}" width="{{$size}}" height="{{$size}}" alt aria-hidden="true">
{{else if .Repo.IsMirror}}

View File

@ -2,7 +2,7 @@
{{range .Repos}}
<div class="flex-item">
<div class="flex-item-leading">
{{template "repo/icon" (dict "Repo" . "Size" 24 "ShowRepoOwnerAvatar" $.ShowRepoOwnerAvatar)}}
{{template "repo/icon" (dict "Repo" . "Size" 24 "ShowRepoOwnerAvatar" $.ShowRepoOwnerAvatar "ShowRepoAvatar" true)}}
</div>
<div class="flex-item-main">
<div class="flex-item-header">