|
|
@@ -9,7 +9,6 @@ package admin
|
|
|
import (
|
|
|
"gitote/gitote/models"
|
|
|
"gitote/gitote/pkg/context"
|
|
|
- "gitote/gitote/pkg/setting"
|
|
|
"gitote/gitote/routes"
|
|
|
)
|
|
|
|
|
|
@@ -21,11 +20,10 @@ const (
|
|
|
// 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,
|
|
|
+ Type: models.UserTypeIndividual,
|
|
|
+ Counter: models.CountUsers,
|
|
|
+ Ranger: models.Users,
|
|
|
+ OrderBy: "id ASC",
|
|
|
+ TplName: AllUsersTPL,
|
|
|
})
|
|
|
}
|