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.

52 lines
1.6 KiB

  1. {{template "base/head" .}}
  2. <div class="admin user">
  3. {{template "admin/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "admin.orgs.org_manage_panel"}} ({{.i18n.Tr "admin.total" .Total}})
  8. <div class="ui right">
  9. <a class="ui black tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</a>
  10. </div>
  11. </h4>
  12. <div class="ui attached segment">
  13. {{template "admin/base/search" .}}
  14. </div>
  15. <div class="ui attached table segment">
  16. <table class="ui very basic striped table">
  17. <thead>
  18. <tr>
  19. <th>ID</th>
  20. <th>{{.i18n.Tr "admin.orgs.name"}}</th>
  21. <th>{{.i18n.Tr "admin.orgs.teams"}}</th>
  22. <th>{{.i18n.Tr "admin.orgs.members"}}</th>
  23. <th>{{.i18n.Tr "admin.users.repos"}}</th>
  24. <th>{{.i18n.Tr "admin.users.created"}}</th>
  25. <th>{{.i18n.Tr "admin.users.edit"}}</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. {{range .Users}}
  30. <tr>
  31. <td>{{.ID}}</td>
  32. <td>
  33. <a href="{{.HomeLink}}">{{.Name}}</a>
  34. {{if .Visibility.IsPrivate}}
  35. <span class="text gold"><i class="octicon octicon-lock"></i></span>
  36. {{end}}
  37. </td>
  38. <td>{{.NumTeams}}</td>
  39. <td>{{.NumMembers}}</td>
  40. <td>{{.NumRepos}}</td>
  41. <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td>
  42. <td><a href="{{AppSubUrl}}/org/{{.Name}}/settings"><i class="fa fa-pencil-square-o"></i></a></td>
  43. </tr>
  44. {{end}}
  45. </tbody>
  46. </table>
  47. </div>
  48. {{template "base/paginate" .}}
  49. </div>
  50. </div>
  51. {{template "base/footer" .}}