{{template "base/alert" .}}
{{template "repo/release_tag_header" .}}
-
{{range $idx, $info := .Releases}}
{{$release := $info.Release}}
-
{{if $.PageIsSingleTag}}{{$release.Title}}{{else}}{{$release.Title}}{{end}} {{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}} {{template "repo/release/label" (dict "Release" $release)}}
{{if and $.CanCreateRelease (not $.PageIsSingleTag)}} {{svg "octicon-pencil"}} {{end}}{{if not $release.IsDraft}} {{ctx.Locale.Tr "repo.released_this"}} {{DateUtils.TimeSince $release.PublishedUnix}} {{end}} {{if and (gt $release.NumCommits 0) (not $release.IsDraft) ($.Permission.CanRead ctx.Consts.RepoUnitTypeCode)}} | {{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind}} {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}} {{end}}
{{$release.RenderedNote}}{{if not (or $release.IsTag $release.IsDraft)}} {{template "shared/reactions" dict "ActionURL" (printf "%s/releases/%d/reactions" $.RepoLink $release.ID) "Reactions" $info.Reactions.GroupByType "AllowedReactions" $.AllowedReleaseReactions }} {{end}}{{ctx.Locale.Tr "repo.release.downloads"}}
{{end}}