2023-08-01 06:13:42 +08:00
|
|
|
<div class="repo-icon">
|
2023-08-08 15:29:35 +08:00
|
|
|
{{$avatarLink := .RelAvatarLink}}
|
|
|
|
{{if $avatarLink}}
|
|
|
|
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}">
|
|
|
|
{{else if $.IsTemplate}}
|
2020-07-17 23:15:12 +08:00
|
|
|
{{svg "octicon-repo-template" 32}}
|
2023-08-08 15:29:35 +08:00
|
|
|
{{else if $.IsPrivate}}
|
|
|
|
{{svg "octicon-lock" 32}}
|
|
|
|
{{else if $.IsMirror}}
|
|
|
|
{{svg "octicon-mirror" 32}}
|
|
|
|
{{else if $.IsFork}}
|
|
|
|
{{svg "octicon-repo-forked" 32}}
|
2020-06-13 05:24:41 +08:00
|
|
|
{{else}}
|
2023-08-08 15:29:35 +08:00
|
|
|
{{svg "octicon-repo" 32}}
|
2020-06-13 05:24:41 +08:00
|
|
|
{{end}}
|
2020-06-26 08:07:15 +08:00
|
|
|
</div>
|