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.

40 lines
1.5 KiB

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="{{.Link}}">
  6. {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
  7. {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}}
  8. </a>
  9. {{if .IsPrivate}}
  10. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  11. {{else if .IsFork}}
  12. <span><i class="octicon octicon-repo-forked"></i></span>
  13. {{else if .IsMirror}}
  14. <span><i class="octicon octicon-repo-clone"></i></span>
  15. {{else if .Owner}}
  16. {{if .Owner.Visibility.IsPrivate}}
  17. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  18. {{end}}
  19. {{end}}
  20. <div class="ui right metas">
  21. <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
  22. <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
  23. </div>
  24. </div>
  25. {{if .DescriptionHTML}}<p class="has-emoji">{{.DescriptionHTML}}</p>{{end}}
  26. {{if .Topics }}
  27. <div>
  28. {{range .Topics}}
  29. {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui green basic label topic">{{.}}</div></a>{{end}}
  30. {{end}}
  31. </div>
  32. {{end}}
  33. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p>
  34. </div>
  35. {{else}}
  36. <div>
  37. {{$.i18n.Tr "explore.repo_no_results"}}
  38. </div>
  39. {{end}}
  40. </div>