Exemple #1
0
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)
}
Exemple #2
0
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,
	})
}