{{template "base/alert" .}}
{{template "repo/release_tag_header" .}}
-
{{range $idx, $info := .Releases}}
{{$release := $info.Release}}
-
{{$release.Title}} {{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "gt-df"}} {{if $release.IsDraft}} {{ctx.Locale.Tr "repo.release.draft"}} {{else if $release.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 $release.CreatedUnix}} {{TimeSinceUnix $release.CreatedUnix ctx.Locale}} {{end}} {{if and (not $release.IsDraft) ($.Permission.CanRead $.UnitTypeCode)}} | {{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind | Str2html}} {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}} {{end}}
{{Str2html $release.Note}}{{ctx.Locale.Tr "repo.release.downloads"}}
-
{{if and (not $.DisableDownloadSourceArchives) (not $release.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}} {{range $release.Attachments}}
-
{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}
{{.Size | FileSize}} {{svg "octicon-info"}}
{{end}}
{{end}}