0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-15 03:16:12 +01:00
This commit is contained in:
silverwind 2025-12-04 22:12:57 +01:00
parent 60790fe16d
commit 038b4e2e06
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

View File

@ -8,13 +8,13 @@
*/}} */}}
{{$avatarLink := (.Repo.RelAvatarLink ctx)}} {{$avatarLink := (.Repo.RelAvatarLink ctx)}}
{{if .ShowRepoOwnerAvatar}} {{if .ShowRepoOwnerAvatar}}
{{ctx.AvatarUtils.Avatar .Repo.Owner $size}} {{ctx.AvatarUtils.Avatar .Repo.Owner .Size}}
{{else if and $avatarLink .ShowRepoAvatar}} {{else if and $avatarLink .ShowRepoAvatar}}
<img class="ui avatar tw-align-middle" src="{{$avatarLink}}" width="{{$size}}" height="{{$size}}" aria-hidden="true"> <img class="ui avatar tw-align-middle" src="{{$avatarLink}}" width="{{.Size}}" height="{{.Size}}" aria-hidden="true">
{{else if .Repo.IsMirror}} {{else if .Repo.IsMirror}}
{{svg "octicon-mirror" $size}} {{svg "octicon-mirror" .Size}}
{{else if .Repo.IsFork}} {{else if .Repo.IsFork}}
{{svg "octicon-repo-forked" $size}} {{svg "octicon-repo-forked" .Size}}
{{else}} {{else}}
{{svg "octicon-repo" $size}} {{svg "octicon-repo" .Size}}
{{end}} {{end}}