diff options
-rw-r--r-- | templates/repo/create.tmpl | 4 |
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"> |