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.

47 lines
1.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="admin">
  4. {{template "admin/nav" .}}
  5. <div id="admin-container" class="col-md-10">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">
  8. Repository Management
  9. </div>
  10. <div class="panel-body">
  11. <table class="table table-striped">
  12. <thead>
  13. <tr>
  14. <th>Id</th>
  15. <th>Owner</th>
  16. <th>Name</th>
  17. <th>Private</th>
  18. <th>Watches</th>
  19. <th>Issues</th>
  20. <th>Forks</th>
  21. <th>Created</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {{range .Repos}}
  26. <tr>
  27. <td>{{.Id}}</td>
  28. <th>{{.Owner.Name}}</th>
  29. <td><a href="/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
  30. <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td>
  31. <td>{{.NumWatches}}</td>
  32. <td>{{.NumIssues}}</td>
  33. <td>{{.NumForks}}</td>
  34. <td>{{DateFormat .Created "M d, Y"}}</td>
  35. </tr>
  36. {{end}}
  37. </tbody>
  38. </table>
  39. <ul class="pagination">
  40. {{if .LastPageNum}}<li><a href="/admin/repos?p={{.LastPageNum}}">&laquo; Prev.</a></li>{{end}}
  41. {{if .NextPageNum}}<li><a href="/admin/repos?p={{.NextPageNum}}">&raquo; Next</a></li>{{end}}
  42. </ul>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "base/footer" .}}