Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829
  1. // Copyright 2014 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package admin
  5. import (
  6. "code.gitea.io/gitea/models"
  7. "code.gitea.io/gitea/modules/base"
  8. "code.gitea.io/gitea/modules/context"
  9. "code.gitea.io/gitea/modules/setting"
  10. "code.gitea.io/gitea/routers"
  11. )
  12. const (
  13. tplOrgs base.TplName = "admin/org/list"
  14. )
  15. // Organizations show all the organizations
  16. func Organizations(ctx *context.Context) {
  17. ctx.Data["Title"] = ctx.Tr("admin.organizations")
  18. ctx.Data["PageIsAdmin"] = true
  19. ctx.Data["PageIsAdminOrganizations"] = true
  20. routers.RenderUserSearch(ctx, &models.SearchUserOptions{
  21. Type: models.UserTypeOrganization,
  22. PageSize: setting.UI.Admin.OrgPagingNum,
  23. }, tplOrgs)
  24. }