aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/icon.tmpl
blob: 3747d3a6f5b0db3f86a7bff559e614cb7cfe6e98 (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="" aria-hidden="true">
{{else if $.IsMirror}}
	{{svg "octicon-mirror" 24}}
{{else if $.IsFork}}
	{{svg "octicon-repo-forked" 24}}
{{else}}
	{{svg "octicon-repo" 24}}
{{end}}