|
|
@@ -13,7 +13,17 @@ const ( |
|
|
|
tplIndex base.TplName = "repo/datasets/index" |
|
|
|
) |
|
|
|
|
|
|
|
// MustEnableDataset check if repository enable internal dataset |
|
|
|
func MustEnableDataset(ctx *context.Context) { |
|
|
|
if !ctx.Repo.CanRead(models.UnitTypeDatasets) { |
|
|
|
ctx.NotFound("MustEnableDataset", nil) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func DatasetIndex(ctx *context.Context) { |
|
|
|
MustEnableDataset(ctx) |
|
|
|
|
|
|
|
var orderBy models.SearchOrderBy |
|
|
|
repo := ctx.Repo.Repository |
|
|
|
// user := ctx.User |
|
|
|