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.

60 lines
3.1 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="admin-wrapper">
  4. <div id="setting-wrapper" class="main-wrapper">
  5. <div id="admin-setting" class="container clear">
  6. {{template "admin/nav" .}}
  7. <div class="grid-4-5 left">
  8. <div class="setting-content">
  9. {{template "ng/base/alert" .}}
  10. <div id="setting-content">
  11. <div class="panel panel-radius">
  12. <div class="panel-header">
  13. <strong>{{.i18n.Tr "admin.repos.repo_manage_panel"}}</strong>
  14. </div>
  15. <div class="panel-body admin-panel">
  16. <div class="admin-table">
  17. <table class="table table-striped">
  18. <thead>
  19. <tr>
  20. <th>ID</th>
  21. <th>{{.i18n.Tr "admin.repos.owner"}}</th>
  22. <th>{{.i18n.Tr "admin.repos.name"}}</th>
  23. <th>{{.i18n.Tr "admin.repos.private"}}</th>
  24. <th>{{.i18n.Tr "admin.repos.watches"}}</th>
  25. <th>{{.i18n.Tr "admin.repos.stars"}}</th>
  26. <th>{{.i18n.Tr "admin.repos.issues"}}</th>
  27. <th>{{.i18n.Tr "admin.users.created"}}</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. {{range .Repos}}
  32. <tr>
  33. <td>{{.ID}}</td>
  34. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td>
  35. <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
  36. <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
  37. <td>{{.NumWatches}}</td>
  38. <td>{{.NumStars}}</td>
  39. <td>{{.NumIssues}}</td>
  40. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  41. </tr>
  42. {{end}}
  43. </tbody>
  44. </table>
  45. {{if or .LastPageNum .NextPageNum}}
  46. <ul class="pagination">
  47. {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/repos?p={{.LastPageNum}}">&laquo; Prev.</a></li>{{end}}
  48. {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/repos?p={{.NextPageNum}}">&raquo; Next</a></li>{{end}}
  49. </ul>
  50. {{end}}
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {{template "ng/base/footer" .}}