allusers.go 763 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Copyright 2018 Gitote. All rights reserved.
  3. //
  4. // This source code is licensed under the MIT license found in the
  5. // LICENSE file in the root directory of this source tree.
  6. package admin
  7. import (
  8. "gitote/gitote/models"
  9. "gitote/gitote/pkg/context"
  10. "gitote/gitote/pkg/setting"
  11. "gitote/gitote/routes"
  12. )
  13. const (
  14. // UsersListTPL list page template
  15. AllUsersTPL = "admin/allusers"
  16. )
  17. // AllUsers shows all users page
  18. func AllUsers(c *context.Context) {
  19. routes.RenderUserSearch(c, &routes.UserSearchOptions{
  20. Type: models.UserTypeIndividual,
  21. Counter: models.CountUsers,
  22. Ranger: models.Users,
  23. PageSize: setting.UI.Admin.UserPagingNum,
  24. OrderBy: "id ASC",
  25. TplName: AllUsersTPL,
  26. })
  27. }