{{.i18n.Tr "repo.release.deletion_tag_desc"}}
{{template "base/head" .}}
{{.TagName}}
{{if $.Permission.CanRead $.UnitTypeCode}}
{{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}}
{{svg "octicon-file-zip" 16 "mr-2"}}ZIP
{{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ
{{if (and $.CanCreateRelease $release.IsTag)}}
{{svg "octicon-tag" 16 "mr-2"}}{{$.i18n.Tr "repo.release.new_release"}}
{{end}}
{{if (and ($.Permission.CanWrite $.UnitTypeCode) $release.IsTag)}}
{{svg "octicon-trashcan" 16 "mr-2"}}{{$.i18n.Tr "repo.release.delete_tag"}}
{{end}}
{{if (not $release.IsTag)}}
{{svg "octicon-tag" 16 "mr-2"}}{{$.i18n.Tr "repo.release.detail"}}
{{end}}
{{end}}
|
{{ if gt .Publisher.ID 0 }} {{$.i18n.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}} {{$.i18n.Tr "repo.release.ahead.target" $.DefaultBranch}}
{{ end }}{{$.i18n.Tr "repo.released_this"}} {{if .CreatedUnix}} {{TimeSinceUnix .CreatedUnix $.Lang}} | {{end}} {{$.i18n.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}} {{$.i18n.Tr "repo.release.ahead.target" .Target}}
{{.i18n.Tr "repo.release.deletion_tag_desc"}}