{{.CsrfTokenHtml}}

{{ctx.Locale.Tr "new_repo.title"}}

{{if or .CanCreateRepo .Orgs}} {{template "base/alert" .}} {{template "repo/create_helper" .}} {{if and (not .CanCreateRepo) (ne .MaxCreationLimit 0)}}

{{ctx.Locale.TrN .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n" .MaxCreationLimit}}

{{end}}
{{template "repo/create_basic" .}}
{{ctx.Locale.Tr "repo.new_from_template"}} {{ctx.Locale.Tr "repo.new_from_template_description"}} {{template "repo/create_from_template" .}}
{{ctx.Locale.Tr "repo.auto_init"}} {{template "repo/create_init" .}}
{{ctx.Locale.Tr "repo.new_advanced"}}
{{ctx.Locale.Tr "repo.new_advanced_expand"}} {{template "repo/create_advanced" .}}
{{else}}
{{ctx.Locale.Tr "repo.form.cannot_create"}}
{{end}}