2015-11-16 10:22:46 +05:30
|
|
|
{{template "base/head" .}}
|
2023-04-25 21:59:00 +05:30
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository releases">
|
2015-12-08 04:00:52 +05:30
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
2023-05-11 03:57:02 +05:30
|
|
|
{{template "repo/release_tag_header" .}}
|
2015-12-08 04:00:52 +05:30
|
|
|
<ul id="release-list">
|
2024-02-19 15:57:05 +05:30
|
|
|
{{range $idx, $info := .Releases}}
|
|
|
|
{{$release := $info.Release}}
|
2015-12-08 04:00:52 +05:30
|
|
|
<li class="ui grid">
|
2023-05-04 03:28:59 +05:30
|
|
|
<div class="ui four wide column meta">
|
2024-02-19 15:57:05 +05:30
|
|
|
<a class="muted" href="{{if not (and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode))}}#{{else}}{{$.RepoLink}}/src/tag/{{$release.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "gt-mr-2"}}{{$release.TagName}}</a>
|
|
|
|
{{if and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode)}}
|
|
|
|
<a class="muted gt-mono" href="{{$.RepoLink}}/src/commit/{{$release.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha $release.Sha1}}</a>
|
|
|
|
{{template "repo/branch_dropdown" dict "root" $ "release" $release}}
|
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui twelve wide column detail">
|
2024-02-19 15:57:05 +05:30
|
|
|
<div class="gt-df gt-ac gt-sb gt-fw gt-mb-3">
|
|
|
|
<h4 class="release-list-title gt-word-break">
|
2024-03-04 12:55:07 +05:30
|
|
|
<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>
|
2024-02-19 15:57:05 +05:30
|
|
|
{{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "gt-df"}}
|
|
|
|
{{if $release.IsDraft}}
|
|
|
|
<span class="ui yellow label">{{ctx.Locale.Tr "repo.release.draft"}}</span>
|
|
|
|
{{else if $release.IsPrerelease}}
|
|
|
|
<span class="ui orange label">{{ctx.Locale.Tr "repo.release.prerelease"}}</span>
|
2024-03-02 17:37:23 +05:30
|
|
|
{{else if (not $release.IsTag)}}
|
2024-02-19 15:57:05 +05:30
|
|
|
<span class="ui green label">{{ctx.Locale.Tr "repo.release.stable"}}</span>
|
2019-10-05 16:39:27 +05:30
|
|
|
{{end}}
|
2024-02-19 15:57:05 +05:30
|
|
|
</h4>
|
|
|
|
<div>
|
|
|
|
{{if $.CanCreateRelease}}
|
|
|
|
<a class="muted" data-tooltip-content="{{ctx.Locale.Tr "repo.release.edit"}}" href="{{$.RepoLink}}/releases/edit/{{$release.TagName | PathEscapeSegments}}" rel="nofollow">
|
|
|
|
{{svg "octicon-pencil"}}
|
|
|
|
</a>
|
2021-05-06 08:42:50 +05:30
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2024-02-19 15:57:05 +05:30
|
|
|
</div>
|
|
|
|
<p class="text grey">
|
|
|
|
<span class="author">
|
|
|
|
{{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"}}
|
|
|
|
<a href="{{$release.Publisher.HomeLink}}">{{$release.Publisher.GetDisplayName}}</a>
|
|
|
|
{{else}}
|
|
|
|
Ghost
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
<span class="released">
|
|
|
|
{{ctx.Locale.Tr "repo.released_this"}}
|
|
|
|
</span>
|
|
|
|
{{if $release.CreatedUnix}}
|
|
|
|
<span class="time">{{TimeSinceUnix $release.CreatedUnix ctx.Locale}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{if and (not $release.IsDraft) ($.Permission.CanRead $.UnitTypeCode)}}
|
2024-03-04 04:35:15 +05:30
|
|
|
| <span class="ahead"><a href="{{$.RepoLink}}/compare/{{$release.TagName | PathEscapeSegments}}...{{$release.TargetBehind | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind | SanitizeHTML}}</a> {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}}</span>
|
2024-02-19 15:57:05 +05:30
|
|
|
{{end}}
|
|
|
|
</p>
|
|
|
|
<div class="markup desc">
|
2024-03-01 12:41:51 +05:30
|
|
|
{{$release.RenderedNote}}
|
2024-02-19 15:57:05 +05:30
|
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<details class="download" {{if eq $idx 0}}open{{end}}>
|
|
|
|
<summary class="gt-my-4">
|
|
|
|
{{ctx.Locale.Tr "repo.release.downloads"}}
|
|
|
|
</summary>
|
|
|
|
<ul class="list">
|
|
|
|
{{if and (not $.DisableDownloadSourceArchives) (not $release.IsDraft) ($.Permission.CanRead $.UnitTypeCode)}}
|
|
|
|
<li>
|
|
|
|
<a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
{{range $release.Attachments}}
|
|
|
|
<li>
|
|
|
|
<a target="_blank" rel="nofollow" href="{{.DownloadURL}}" download>
|
|
|
|
<strong>{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}</strong>
|
|
|
|
</a>
|
|
|
|
<div>
|
|
|
|
<span class="text grey">{{.Size | FileSize}}</span>
|
|
|
|
<span data-tooltip-content="{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}}">
|
|
|
|
{{svg "octicon-info"}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</details>
|
2023-09-18 09:55:36 +05:30
|
|
|
<div class="dot"></div>
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
2023-04-25 21:59:00 +05:30
|
|
|
|
2016-11-10 16:23:29 +05:30
|
|
|
{{template "base/paginate" .}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
2014-04-02 22:13:31 +05:30
|
|
|
</div>
|
2020-11-03 04:40:22 +05:30
|
|
|
|
|
|
|
{{if (and ($.Permission.CanWrite $.UnitTypeCode) .PageIsTagList)}}
|
2023-04-24 16:38:59 +05:30
|
|
|
<div class="ui g-modal-confirm delete modal">
|
2023-04-23 14:54:19 +05:30
|
|
|
<div class="header">
|
|
|
|
{{svg "octicon-trash"}}
|
2023-09-25 14:26:50 +05:30
|
|
|
{{ctx.Locale.Tr "repo.release.delete_tag"}}
|
2020-11-03 04:40:22 +05:30
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-09-25 14:26:50 +05:30
|
|
|
<p>{{ctx.Locale.Tr "repo.release.deletion_tag_desc"}}</p>
|
2020-11-03 04:40:22 +05:30
|
|
|
</div>
|
2023-04-23 14:54:19 +05:30
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2020-11-03 04:40:22 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2015-12-08 04:00:52 +05:30
|
|
|
{{template "base/footer" .}}
|