{{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" "tw-flex"}} {{if $release.IsDraft}} {{ctx.Locale.Tr "repo.release.draft"}} {{else if $release.IsPrerelease}} {{ctx.Locale.Tr "repo.release.prerelease"}} {{else if (not $release.IsTag)}} {{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}} {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}} {{end}}
{{template "repo/tag/verification_line" (dict "ctxData" $ "release" $release)}}{{$release.RenderedNote}}{{$hasReleaseAttachment := gt (len $release.Attachments) 0}} {{$hasArchiveLinks := and (not $.DisableDownloadSourceArchives) (not $release.IsDraft) (not $release.HideArchiveLinks) ($.Permission.CanRead $.UnitTypeCode)}} {{if or $hasArchiveLinks $hasReleaseAttachment}}{{ctx.Locale.Tr "repo.release.downloads"}}
-
{{if $hasArchiveLinks}}
-
{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)
{{ctx.Locale.TrN .Release.ArchiveDownloadCount.Zip "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .Release.ArchiveDownloadCount.Zip)}}{{svg "octicon-info"}}
-
{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)
{{ctx.Locale.TrN .Release.ArchiveDownloadCount.TarGz "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .Release.ArchiveDownloadCount.TarGz)}}{{svg "octicon-info"}}
{{if $hasReleaseAttachment}}
-
{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}
{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} ยท {{.Size | ctx.Locale.TrSize}}
{{end}}
{{end}} {{end}} {{range $release.Attachments}}
{{end}}
-
{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)