2020-12-08 05:14:28 +01:00
|
|
|
<div class="repo-icon mr-3">
|
2020-06-26 02:07:15 +02:00
|
|
|
{{if $.IsTemplate}}
|
2020-07-17 17:15:12 +02:00
|
|
|
{{svg "octicon-repo-template" 32}}
|
2020-06-12 23:24:41 +02:00
|
|
|
{{else}}
|
2020-06-26 02:07:15 +02:00
|
|
|
{{if $.IsPrivate}}
|
|
|
|
{{svg "octicon-lock" 32}}
|
|
|
|
{{else if and (not $.IsMirror) (not $.IsFork) ($.Owner)}}
|
2020-07-17 17:15:12 +02:00
|
|
|
{{svg "octicon-repo" 32}}
|
2020-06-26 02:07:15 +02:00
|
|
|
{{if $.Owner.Visibility.IsPrivate}}
|
2020-12-03 19:46:11 +01:00
|
|
|
{{avatar $.Owner}}
|
2020-06-26 02:07:15 +02:00
|
|
|
{{end}}
|
|
|
|
{{else if $.IsMirror}}
|
2020-07-17 17:15:12 +02:00
|
|
|
{{svg "octicon-mirror" 32}}
|
2020-06-26 02:07:15 +02:00
|
|
|
{{else if $.IsFork}}
|
|
|
|
{{svg "octicon-repo-forked" 32}}
|
2020-06-12 23:24:41 +02:00
|
|
|
{{else}}
|
|
|
|
{{svg "octicon-repo" 32}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2020-06-26 02:07:15 +02:00
|
|
|
</div>
|