{{if .PageIsEditProjects}} {{ctx.Locale.Tr "repo.projects.edit"}}
{{ctx.Locale.Tr "repo.projects.edit_subheader"}}
{{else}} {{ctx.Locale.Tr "repo.projects.new"}}
{{ctx.Locale.Tr "repo.projects.new_subheader"}}
{{end}}

{{template "base/alert" .}}
{{.CsrfTokenHtml}}
{{/* TODO: repo-level project and org-level project have different behaviros to render */}} {{/* the "Repository" is nil when the project is org-level */}} {{template "shared/combomarkdowneditor" (dict "MarkdownPreviewInRepo" $.Repository "MarkdownPreviewContext" (Iif $.Repository "" .HomeLink) "MarkdownPreviewMode" (Iif $.Repository "comment") "TextareaName" "content" "TextareaContent" .content "TextareaPlaceholder" (ctx.Locale.Tr "repo.projects.description_placeholder") )}}
{{if not .PageIsEditProjects}}
{{end}}
{{ctx.Locale.Tr "repo.milestones.cancel"}}