repo_list.tmpl 805 B

12345678910111213141516171819202122
  1. <div class="ui repository list">
  2. {{range .Repos}}
  3. <div class="item">
  4. <div class="ui header">
  5. <a class="name" href="{{.Link}}">{{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{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>
  14. {{if .DescriptionHTML}}<p class="has-emoji">{{.DescriptionHTML}}</p>{{end}}
  15. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p>
  16. </div>
  17. {{else}}
  18. <div>
  19. {{$.i18n.Tr "explore.repo_no_results"}}
  20. </div>
  21. {{end}}
  22. </div>