repo_list.tmpl 1.3 KB

123456789101112131415161718192021222324252627282930
  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 .IsFork}}
  14. <span><i class="octicon octicon-repo-forked"></i></span>
  15. {{else if .IsMirror}}
  16. <span><i class="octicon octicon-repo-clone"></i></span>
  17. {{end}}
  18. <div class="ui right metas">
  19. <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
  20. <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
  21. </div>
  22. </div>
  23. {{if .Description}}<p class="has-emoji">{{.Description | Str2HTML}}</p>{{end}}
  24. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  25. </div>
  26. </div>
  27. </div>
  28. {{end}}
  29. </div>