Более 10 пользователй на карте #78

Merged
redex2000 merged 1 commits from user_map into dev_mirocod 2 years ago
  1. 2
      routers/web/map/umap.go

2
routers/web/map/umap.go

@ -102,7 +102,7 @@ func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions,
ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
pager := context.NewPagination(int(count), opts.PageSize, opts.Page, 5) pager := context.NewPagination(int(count), 8 * 1024, opts.Page, 5)
pager.SetDefaultParams(ctx) pager.SetDefaultParams(ctx)
for paramKey, paramVal := range opts.ExtraParamStrings { for paramKey, paramVal := range opts.ExtraParamStrings {
pager.AddParamString(paramKey, paramVal) pager.AddParamString(paramKey, paramVal)

Loading…
Cancel
Save