Browse Source

Removed Paging Num in All Users

Yoginth 7 years ago
parent
commit
23401f11af
1 changed files with 5 additions and 7 deletions
  1. 5 7
      routes/admin/allusers.go

+ 5 - 7
routes/admin/allusers.go

@@ -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,
 	})
 }