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