mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 13:51:29 +01:00
6cef7a767b
Backport #27644 by @denyskon Fix #27596 Change confusing behavior when showing information about a repo via labels and icons. Implement changes proposed by @lng2020 in https://github.com/go-gitea/gitea/pull/27627#pullrequestreview-1678787673. Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
10 lines
300 B
Go HTML Template
10 lines
300 B
Go HTML Template
{{$avatarLink := .RelAvatarLink}}
|
|
{{if $avatarLink}}
|
|
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}">
|
|
{{else if $.IsMirror}}
|
|
{{svg "octicon-mirror" 32}}
|
|
{{else if $.IsFork}}
|
|
{{svg "octicon-repo-forked" 32}}
|
|
{{else}}
|
|
{{svg "octicon-repo" 32}}
|
|
{{end}}
|