{{template "base/head" .}}
{{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}}
{{$.locale.Tr "loading"}}
{{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}}
{{if .PageIsEditRelease}} {{end}} {{template "base/footer" .}}