{{template "repo/header" .}}

{{if .PageIsEditRelease}} {{.locale.Tr "repo.release.edit_release"}}
{{.locale.Tr "repo.release.edit_subheader"}}
{{else}} {{.locale.Tr "repo.release.new_release"}}
{{.locale.Tr "repo.release.new_subheader"}}
{{end}}

{{template "base/alert" .}}
{{.CsrfTokenHtml}}
{{if .PageIsEditRelease}} {{.tag_name}}@{{.tag_target}} {{else}}
@
{{.locale.Tr "repo.release.tag_helper"}}
{{end}}
{{template "shared/combomarkdowneditor" (dict "locale" $.locale "MarkdownPreviewUrl" (print .Repository.Link "/markup") "MarkdownPreviewContext" .RepoLink "TextareaName" "content" "TextareaContent" .content "TextareaPlaceholder" (.locale.Tr "repo.release.message") "TextareaAriaLabel" (.locale.Tr "repo.release.message") "DropzoneParentContainer" "form" )}}
{{range .attachments}}
{{.Size | FileSize}} {{svg "octicon-info"}}
{{end}} {{if .IsAttachmentEnabled}}
{{template "repo/upload" .}}
{{end}}
{{if not .PageIsEditRelease}}
{{else}} {{end}}
{{.locale.Tr "repo.release.prerelease_helper"}}
{{if .PageIsEditRelease}} {{.locale.Tr "repo.release.cancel"}} {{$.locale.Tr "repo.release.delete_release"}} {{if .IsDraft}} {{else}} {{end}} {{else}} {{if not .tag_name}} {{end}} {{end}}