Skip to content

Commit d1dbbf4

Browse files
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>
1 parent c1a80b7 commit d1dbbf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/repo/create.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<div class="ui attached segment">
1111
{{template "base/alert" .}}
1212

13-
<p class="ui center">{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}</p>
13+
{{if not $.DisableMigrations}}
14+
<p class="ui center">{{.i18n.Tr "repo.new_repo_helper" (printf "%s%s" AppSubUrl "/repo/migrate") | Safe}}</p>
15+
{{end}}
1416

1517
{{if not .CanCreateRepo}}
1618
<div class="ui negative message">

0 commit comments

Comments
 (0)