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.

57 lines
2.9 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.orgs.org_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.orgs.name"}}</th>
  22. <th>{{.i18n.Tr "email"}}</th>
  23. <th>{{.i18n.Tr "admin.orgs.teams"}}</th>
  24. <th>{{.i18n.Tr "admin.orgs.members"}}</th>
  25. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  26. <th>{{.i18n.Tr "admin.users.created"}}</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {{range .Orgs}}
  31. <tr>
  32. <td>{{.Id}}</td>
  33. <td><a href="{{AppSubUrl}}/org/{{.Name}}">{{.Name}}</a></td>
  34. <td>{{.Email}}</td>
  35. <td>{{.NumTeams}}</td>
  36. <td>{{.NumMembers}}</td>
  37. <td>{{.NumRepos}}</td>
  38. <td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
  39. </tr>
  40. {{end}}
  41. </tbody>
  42. </table>
  43. {{if or .LastPageNum .NextPageNum}}
  44. <ul class="pagination">
  45. {{if .LastPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/orgs?p={{.LastPageNum}}">&laquo; {{.i18n.Tr "admin.prev"}}</a></li>{{end}}
  46. {{if .NextPageNum}}<li><a class="btn btn-medium btn-gray btn-radius" href="{{AppSubUrl}}/admin/orgs?p={{.NextPageNum}}">&raquo; {{.i18n.Tr "admin.next"}}</a></li>{{end}}
  47. </ul>
  48. {{end}}
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. {{template "ng/base/footer" .}}