Skip to content

Commit

Permalink
not show link to migration on repo reate page when it was disabled (g…
Browse files Browse the repository at this point in the history
…o-gitea#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>
  • Loading branch information
a1012112796 and techknowlogick authored May 26, 2021
1 parent c1a80b7 commit d1dbbf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/repo/create.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit d1dbbf4

Please sign in to comment.