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.

23 lines
1012 B

9 years ago
9 years ago
  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>