From b4c155eaad987a45e51c7bb4522a5c9878c131df Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Thu, 24 Mar 2022 17:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/repo/dataset.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/repo/dataset.go b/routers/repo/dataset.go index b59d4b429..11bd99149 100755 --- a/routers/repo/dataset.go +++ b/routers/repo/dataset.go @@ -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