allusers.go 706 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2015 - Present, The Gogs Authors. All rights reserved.
  2. // Copyright 2018 - Present, 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/routes"
  11. )
  12. const (
  13. // AllUsersTPL list page template
  14. AllUsersTPL = "admin/allusers"
  15. )
  16. // AllUsers shows all users page
  17. func AllUsers(c *context.Context) {
  18. routes.RenderUserSearch(c, &routes.UserSearchOptions{
  19. Type: models.UserTypeIndividual,
  20. Counter: models.CountUsers,
  21. Ranger: models.Users,
  22. OrderBy: "id ASC",
  23. TplName: AllUsersTPL,
  24. })
  25. }