0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 12:52:48 +01:00
gitea/templates/repo/icon.tmpl

11 lines
316 B
Handlebars
Raw Normal View History

{{$avatarLink := (.RelAvatarLink ctx)}}
{{if $avatarLink}}
<img class="ui avatar tw-align-middle" src="{{$avatarLink}}" width="24" height="24" alt="{{.FullName}}">
{{else if $.IsMirror}}
{{svg "octicon-mirror" 24}}
{{else if $.IsFork}}
{{svg "octicon-repo-forked" 24}}
{{else}}
{{svg "octicon-repo" 24}}
{{end}}