|
|
@@ -0,0 +1,31 @@
|
|
|
+// Copyright 2015 The Gogs Authors. All rights reserved.
|
|
|
+// Copyright 2018 Gitote. All rights reserved.
|
|
|
+//
|
|
|
+// This source code is licensed under the MIT license found in the
|
|
|
+// LICENSE file in the root directory of this source tree.
|
|
|
+
|
|
|
+package admin
|
|
|
+
|
|
|
+import (
|
|
|
+ "gitote/gitote/models"
|
|
|
+ "gitote/gitote/pkg/context"
|
|
|
+ "gitote/gitote/pkg/setting"
|
|
|
+ "gitote/gitote/routes"
|
|
|
+)
|
|
|
+
|
|
|
+const (
|
|
|
+ // UsersListTPL list page template
|
|
|
+ AllUsersTPL = "admin/allusers"
|
|
|
+)
|
|
|
+
|
|
|
+// AllUsers shows all users page
|
|
|
+func AllUsers(c *context.Context) {
|
|
|
+ routes.RenderUserSearch(c, &routes.UserSearchOptions{
|
|
|
+ Type: models.UserTypeIndividual,
|
|
|
+ Counter: models.CountUsers,
|
|
|
+ Ranger: models.Users,
|
|
|
+ PageSize: setting.UI.Admin.UserPagingNum,
|
|
|
+ OrderBy: "id ASC",
|
|
|
+ TplName: AllUsersTPL,
|
|
|
+ })
|
|
|
+}
|