{{template "base/alert" .}}
{{template "repo/release_tag_header" .}}
-
{{range $idx, $release := .Releases}}
-
{{.Title}} {{if .IsDraft}} {{ctx.Locale.Tr "repo.release.draft"}} {{else if .IsPrerelease}} {{ctx.Locale.Tr "repo.release.prerelease"}} {{else}} {{ctx.Locale.Tr "repo.release.stable"}} {{end}}
{{if $.CanCreateRelease}} {{svg "octicon-pencil"}} {{end}}{{ctx.Locale.Tr "repo.released_this"}} {{if .CreatedUnix}} {{TimeSinceUnix .CreatedUnix ctx.Locale}} {{end}} {{if and (not .IsDraft) ($.Permission.CanRead $.UnitTypeCode)}} | {{ctx.Locale.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}} {{ctx.Locale.Tr "repo.release.ahead.target" .TargetBehind}} {{end}}
{{Str2html .Note}}{{ctx.Locale.Tr "repo.release.downloads"}}
-
{{if and (not $.DisableDownloadSourceArchives) (not .IsDraft) ($.Permission.CanRead $.UnitTypeCode)}}
- {{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)
- {{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ) {{end}} {{if .Attachments}} {{range .Attachments}}
-
{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}
{{.Size | FileSize}} {{svg "octicon-info"}}
{{end}}
{{end}}
{{end}}