From d1dbbf43b078f3b162c1ba0939d0e04363b844b5 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Thu, 27 May 2021 00:13:00 +0800 Subject: [PATCH] not show link to migration on repo reate page when it was disabled (#15957) * not show link to migration on repo reate page when it was disabled Signed-off-by: a1012112796 <1012112796@qq.com> * fix lint Co-authored-by: techknowlogick --- templates/repo/create.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 3b76e0ace..a129f661b 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -10,7 +10,9 @@
{{template "base/alert" .}} -

{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}

+ {{if not $.DisableMigrations}} +

{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}

+ {{end}} {{if not .CanCreateRepo}}