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