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.

repo_list.tmpl 1.2KB

12345678910111213141516171819202122232425262728293031323334
  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 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. {{if .Topics }}
  20. <div>
  21. {{range .Topics}}
  22. {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
  23. {{end}}
  24. </div>
  25. {{end}}
  26. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p>
  27. </div>
  28. {{else}}
  29. <div>
  30. {{$.i18n.Tr "explore.repo_no_results"}}
  31. </div>
  32. {{end}}
  33. </div>