summaryrefslogtreecommitdiffstats
path: root/templates/repo/icon.tmpl
blob: e5e0bd68e785e1ad77f12d723826cebd108989a3 (plain)
1
2
3
4
5
6
7
8
9
10
{{$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}}