{{template "repo/header" .}}
{{template "base/alert" .}} {{if .EnableFeed}} {{svg "octicon-rss" 18}} {{end}} {{if (and .CanCreateRelease (not .PageIsTagList))}} {{.locale.Tr "repo.release.new_release"}} {{end}} {{if .PageIsTagList}}
{{if gt .ReleasesNum 0}}

{{svg "octicon-tag" 16 "mr-2"}}{{.locale.Tr "repo.release.tags"}}

{{range $idx, $release := .Releases}} {{end}}

{{.TagName}}

{{if $.Permission.CanRead $.UnitTypeCode}} {{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}} {{if not $.DisableDownloadSourceArchives}} {{svg "octicon-file-zip" 16 "mr-2"}}ZIP {{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ {{end}} {{if (and $.CanCreateRelease $release.IsTag)}} {{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.new_release"}} {{end}} {{if (and ($.Permission.CanWrite $.UnitTypeCode) $release.IsTag)}} {{svg "octicon-trash" 16 "mr-2"}}{{$.locale.Tr "repo.release.delete_tag"}} {{end}} {{if (not $release.IsTag)}} {{svg "octicon-tag" 16 "mr-2"}}{{$.locale.Tr "repo.release.detail"}} {{end}} {{end}}
{{end}} {{else}} {{end}} {{template "base/paginate" .}}