Browse Source

Merge branch 'fix-1591' of https://git.openi.org.cn/OpenI/aiforge into fix-1591

tags/v1.22.3.2^2
Gitea 3 years ago
parent
commit
e07e07a29b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/dataset.go

+ 2
- 1
routers/repo/dataset.go View File

@@ -107,6 +107,7 @@ func QueryDataSet(ctx *context.Context) []*models.Attachment {
func DatasetIndex(ctx *context.Context) {
log.Info("dataset index 1")
MustEnableDataset(ctx)
ctx.Data["PageIsDataset"] = true

repo := ctx.Repo.Repository

@@ -153,7 +154,7 @@ func DatasetIndex(ctx *context.Context) {
}

ctx.Data["Page"] = pager
ctx.Data["PageIsDataset"] = true
ctx.Data["Title"] = ctx.Tr("dataset.show_dataset")
ctx.Data["Link"] = ctx.Repo.RepoLink + "/datasets"
ctx.Data["dataset"] = dataset


Loading…
Cancel
Save