usersitemap.go 666 B

123456789101112131415161718192021222324252627282930
  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/routes"
  11. )
  12. const (
  13. // SitemapTPL page template
  14. SitemapTPL = "user/sitemap"
  15. )
  16. // About shows about page
  17. func Sitemap(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: SitemapTPL,
  24. })
  25. }