func Repos(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("admin.repositories") ctx.Data["PageIsAdmin"] = true ctx.Data["PageIsAdminRepositories"] = true routers.RenderRepoSearch(ctx, models.CountRepositories, models.Repositories, setting.AdminRepoPagingNum, "id ASC", REPOS) }
func Repos(ctx *context.Context) { ctx.Data["Title"] = ctx.Tr("admin.repositories") ctx.Data["PageIsAdmin"] = true ctx.Data["PageIsAdminRepositories"] = true routers.RenderRepoSearch(ctx, &routers.RepoSearchOptions{ Counter: models.CountRepositories, Ranger: models.Repositories, Private: true, PageSize: setting.UI.Admin.RepoPagingNum, OrderBy: "id ASC", TplName: REPOS, }) }