Browse Source

提交代码

tags/v1.22.3.2^2
ychao_1983 4 years ago
parent
commit
b4c155eaad
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