mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-15 21:43:59 +08:00
ebe803e514
Part of #27065 --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
15 lines
418 B
Handlebars
15 lines
418 B
Handlebars
{{$avatarLink := (.RelAvatarLink ctx)}}
|
|
{{if $avatarLink}}
|
|
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}">
|
|
{{else if $.IsTemplate}}
|
|
{{svg "octicon-repo-template" 32}}
|
|
{{else if $.IsPrivate}}
|
|
{{svg "octicon-lock" 32}}
|
|
{{else if $.IsMirror}}
|
|
{{svg "octicon-mirror" 32}}
|
|
{{else if $.IsFork}}
|
|
{{svg "octicon-repo-forked" 32}}
|
|
{{else}}
|
|
{{svg "octicon-repo" 32}}
|
|
{{end}}
|