{{template "base/head" .}}
{{template "repo/header" .}}

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

{{template "base/alert" .}}
{{.CsrfTokenHtml}}
{{if .PageIsEditRelease}} {{.tag_name}}@{{.tag_target}} {{else}} @ {{.i18n.Tr "repo.release.tag_helper"}} {{end}}
{{if .attachments}} {{range .attachments}} {{end}}
{{.Name}}
{{end}}
{{if .IsAttachmentEnabled}}
{{end}}
{{.i18n.Tr "repo.release.prerelease_helper"}}
{{if .PageIsEditRelease}} {{$.i18n.Tr "repo.release.delete_release"}} {{else}} {{end}} {{/* Release didn't save as draft at first time is not possible to be draft again because the Git tag had been created. */}} {{if or (not .PageIsEditRelease) .IsDraft}} {{end}} {{.i18n.Tr "repo.release.cancel"}}
{{if .PageIsEditRelease}} {{end}} {{template "base/footer" .}}