aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-05-27 00:13:00 +0800
committerGitHub <noreply@github.com>2021-05-26 12:13:00 -0400
commitd1dbbf43b078f3b162c1ba0939d0e04363b844b5 (patch)
tree4624f575569c2a8eefc57bcf7584c537dff03e68 /templates
parentc1a80b7d6aed36aebcae9b99f63336c758c0e2c4 (diff)
downloadgitea-d1dbbf43b078f3b162c1ba0939d0e04363b844b5.tar.gz
gitea-d1dbbf43b078f3b162c1ba0939d0e04363b844b5.zip
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 <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/create.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 3b76e0ace6..a129f661b5 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -10,7 +10,9 @@
<div class="ui attached segment">
{{template "base/alert" .}}
- <p class="ui center">{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}</p>
+ {{if not $.DisableMigrations}}
+ <p class="ui center">{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}</p>
+ {{end}}
{{if not .CanCreateRepo}}
<div class="ui negative message">