repo_list.tmpl 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <div class="ui repository list">
  2. {{range .Repos}}
  3. <div class="item">
  4. <div class="ui grid">
  5. <div class="ui two wide column middle aligned center">
  6. {{if .RelAvatarLink}}<img class="ui tiny image" src="{{.RelAvatarLink}}">{{else}}<i class="mega-octicon octicon-repo"></i>{{end}}
  7. </div>
  8. <div class="ui fourteen wide column no-padding-left">
  9. <div class="ui header">
  10. <a class="name" href="{{AppSubURL}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a>
  11. {{if .IsPrivate}}
  12. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  13. {{else if .IsUnlisted}}
  14. <span><i class="octicon octicon-eye"></i></span>
  15. {{else if .IsFork}}
  16. <span><i class="octicon octicon-repo-forked"></i></span>
  17. {{else if .IsMirror}}
  18. <span><i class="octicon octicon-repo-clone"></i></span>
  19. {{end}}
  20. <div class="ui right metas">
  21. <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
  22. <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
  23. </div>
  24. </div>
  25. {{if .Description}}<p class="has-emoji">{{.Description | Str2HTML}}</p>{{end}}
  26. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  27. </div>
  28. </div>
  29. </div>
  30. {{end}}
  31. </div>