You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

repos.tmpl 1.8 kB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {{template "base/head" .}}
  2. <div class="explore repositories">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "explore/navbar" .}}
  6. <div class="twelve wide column content">
  7. <div class="ui repository list">
  8. {{range $i, $v := .Repos}}
  9. <div class="item">
  10. <div class="ui header">
  11. <a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
  12. <div class="ui right metas">
  13. <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
  14. <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
  15. </div>
  16. </div>
  17. {{if .Description}}<p>{{.Description}}</p>{{end}}
  18. <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  19. </div>
  20. {{end}}
  21. </div>
  22. {{with .Page}}
  23. {{if gt .TotalPages 1}}
  24. <div class="center page buttons">
  25. <div class="ui borderless pagination menu">
  26. <a class="{{if not .HasPrevious}}disabled{{end}} item" {{if .HasPrevious}}href="{{$.Link}}?page={{.Previous}}"{{end}}>
  27. <i class="left arrow icon"></i> {{$.i18n.Tr "repo.issues.previous"}}
  28. </a>
  29. {{range .Pages}}
  30. {{if eq .Num -1}}
  31. <a class="disabled item">...</a>
  32. {{else}}
  33. <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.Link}}?page={{.Num}}"{{end}}>{{.Num}}</a>
  34. {{end}}
  35. {{end}}
  36. <a class="{{if not .HasNext}}disabled{{end}} item" {{if .HasNext}}href="{{$.Link}}?page={{.Next}}"{{end}}>
  37. {{$.i18n.Tr "repo.issues.next"}} <i class="icon right arrow"></i>
  38. </a>
  39. </div>
  40. </div>
  41. {{end}}
  42. {{end}}
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "base/footer" .}}