+
+ {{$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}}
- Ghost
+ {{ctx.Locale.Tr "repo.release.stable"}}
{{end}}
-
-
- {{ctx.Locale.Tr "repo.released_this"}}
-
- {{if .CreatedUnix}}
- {{TimeSinceUnix .CreatedUnix ctx.Locale}}
+
+
+
+
+ {{if $release.OriginalAuthor}}
+ {{svg (MigrationIcon $release.Repo.GetOriginalURLHostname) 20 "gt-mr-2"}}{{$release.OriginalAuthor}}
+ {{else if $release.Publisher}}
+ {{ctx.AvatarUtils.Avatar $release.Publisher 20 "gt-mr-2"}}
+ {{$release.Publisher.GetDisplayName}}
+ {{else}}
+ Ghost
+ {{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"}}
+
+
+