repo_list.tmpl 1012 B

1234567891011121314151617181920212223
  1. <div class="ui repository list">
  2. {{range .Repos}}
  3. <div class="item">
  4. <div class="ui header">
  5. <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>
  6. {{if .IsPrivate}}
  7. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  8. {{else if .IsFork}}
  9. <span><i class="octicon octicon-repo-forked"></i></span>
  10. {{else if .IsMirror}}
  11. <span><i class="octicon octicon-repo-clone"></i></span>
  12. {{end}}
  13. <div class="ui right metas">
  14. <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
  15. <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
  16. </div>
  17. </div>
  18. {{if .DescriptionHtml}}<p class="has-emoji">{{.DescriptionHtml}}</p>{{end}}
  19. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  20. </div>
  21. {{end}}
  22. </div>