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:
parent
fd0d451d18
commit
ef1a146bec
@ -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}}
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user