{{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 .IsAttachmentEnabled}}
{{end}}
{{.i18n.Tr "repo.release.prerelease_helper"}}
{{if .PageIsEditRelease}} {{.i18n.Tr "repo.release.cancel"}} {{if .IsDraft}} {{else}} {{end}} {{$.i18n.Tr "repo.release.delete_release"}} {{else}} {{end}}
{{if .PageIsEditRelease}} {{end}} {{template "base/footer" .}}