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