예제 #1
0
파일: repos.go 프로젝트: mhartkorn/gogs
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)
}
예제 #2
0
파일: repos.go 프로젝트: VoyTechnology/gogs
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,
	})
}