You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header_icon.tmpl 680B

1234567891011121314151617181920212223242526
  1. <div class="repo-header-icon">
  2. {{if $.IsTemplate}}
  3. {{if $.IsPrivate}}
  4. {{svg "octicon-repo-template-private" 32}}
  5. {{else}}
  6. {{svg "octicon-repo-template" 32}}
  7. {{end}}
  8. {{else}}
  9. {{if $.IsPrivate}}
  10. {{svg "octicon-lock" 32}}
  11. {{else if and (not $.IsMirror) (not $.IsFork) ($.Owner)}}
  12. {{if $.Owner.Visibility.IsPrivate}}
  13. {{svg "octicon-internal-repo" 32}}
  14. <img class="ui avatar image" src="{{$.Owner.RelAvatarLink}}">
  15. {{else}}
  16. {{svg "octicon-repo" 32}}
  17. {{end}}
  18. {{else if $.IsMirror}}
  19. {{svg "octicon-repo-clone" 32}}
  20. {{else if $.IsFork}}
  21. {{svg "octicon-repo-forked" 32}}
  22. {{else}}
  23. {{svg "octicon-repo" 32}}
  24. {{end}}
  25. {{end}}
  26. </div>