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