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">
|
2020-04-01 04:09:54 +05:30
|
|
|
{{range $idx, $release := .Releases}}
|
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">
|
2023-08-26 05:05:10 +05:30
|
|
|
<a class="muted" href="{{if not .Sha1}}#{{else}}{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "gt-mr-2"}}{{.TagName}}</a>
|
2022-10-03 17:35:53 +05:30
|
|
|
{{if .Sha1}}
|
2023-08-26 05:05:10 +05:30
|
|
|
<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-06 06:43:16 +05:30
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui twelve wide column detail">
|
2023-02-13 23:29:59 +05:30
|
|
|
<div class="gt-df gt-ac gt-sb gt-fw gt-mb-3">
|
|
|
|
<h4 class="release-list-title gt-df gt-ac">
|
2022-12-06 18:45:46 +05:30
|
|
|
<a href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{.Title}}</a>
|
|
|
|
{{if .IsDraft}}
|
2023-02-13 23:29:59 +05:30
|
|
|
<span class="ui yellow label gt-ml-3 gt-mt-1">{{$.locale.Tr "repo.release.draft"}}</span>
|
2022-12-06 18:45:46 +05:30
|
|
|
{{else if .IsPrerelease}}
|
2023-02-13 23:29:59 +05:30
|
|
|
<span class="ui orange label gt-ml-3 gt-mt-1">{{$.locale.Tr "repo.release.prerelease"}}</span>
|
2022-12-06 18:45:46 +05:30
|
|
|
{{else if not .IsTag}}
|
2023-02-13 23:29:59 +05:30
|
|
|
<span class="ui green label gt-ml-3 gt-mt-1">{{$.locale.Tr "repo.release.stable"}}</span>
|
2022-12-06 18:45:46 +05:30
|
|
|
{{end}}
|
|
|
|
</h4>
|
2023-02-13 23:29:59 +05:30
|
|
|
<div class="gt-df gt-ac">
|
2023-04-04 02:38:29 +05:30
|
|
|
{{if and $.CanCreateRelease (not .IsTag)}}
|
2023-03-24 16:05:38 +05:30
|
|
|
<a class="muted gt-ml-3 gt-df gt-ac" data-tooltip-content="{{$.locale.Tr "repo.release.edit"}}" href="{{$.RepoLink}}/releases/edit/{{.TagName | PathEscapeSegments}}" rel="nofollow">
|
2022-12-06 18:45:46 +05:30
|
|
|
{{svg "octicon-pencil"}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-27 19:11:33 +05:30
|
|
|
{{if .IsTag}}
|
|
|
|
<p class="text grey">
|
|
|
|
{{if gt .Publisher.ID 0}}
|
|
|
|
<span class="author">
|
2023-08-10 08:49:39 +05:30
|
|
|
{{ctx.AvatarUtils.Avatar .Publisher 20}}
|
2023-03-27 19:11:33 +05:30
|
|
|
<a href="{{.Publisher.HomeLink}}">{{.Publisher.Name}}</a>
|
|
|
|
</span>
|
|
|
|
<span class="released">
|
|
|
|
{{$.locale.Tr "repo.tagged_this"}}
|
|
|
|
</span>
|
|
|
|
{{if .CreatedUnix}}
|
|
|
|
<span class="time">{{TimeSinceUnix .CreatedUnix $.locale}}</span>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
|
{{end}}
|
2023-05-10 09:13:55 +05:30
|
|
|
<span class="ahead"><a href="{{$.RepoLink}}/compare/{{.TagName | PathEscapeSegments}}...{{.TargetBehind | PathEscapeSegments}}">{{$.locale.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}}</a> {{$.locale.Tr "repo.tag.ahead.target" .TargetBehind}}</span>
|
2023-03-27 19:11:33 +05:30
|
|
|
</p>
|
|
|
|
{{else}}
|
2015-12-08 04:00:52 +05:30
|
|
|
<p class="text grey">
|
|
|
|
<span class="author">
|
2019-10-05 16:39:27 +05:30
|
|
|
{{if .OriginalAuthor}}
|
2023-02-13 23:29:59 +05:30
|
|
|
{{svg "octicon-mark-github" 16 "gt-mr-2"}}{{.OriginalAuthor}}
|
2019-10-05 16:39:27 +05:30
|
|
|
{{else if .Publisher}}
|
2023-08-10 08:49:39 +05:30
|
|
|
{{ctx.AvatarUtils.Avatar .Publisher 20}}
|
2021-11-16 23:48:25 +05:30
|
|
|
<a href="{{.Publisher.HomeLink}}">{{.Publisher.GetDisplayName}}</a>
|
2019-10-05 16:39:27 +05:30
|
|
|
{{else}}
|
|
|
|
Ghost
|
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</span>
|
2020-11-03 04:40:22 +05:30
|
|
|
<span class="released">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{$.locale.Tr "repo.released_this"}}
|
2020-11-03 04:40:22 +05:30
|
|
|
</span>
|
|
|
|
{{if .CreatedUnix}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="time">{{TimeSinceUnix .CreatedUnix $.locale}}</span>
|
2021-05-06 08:42:50 +05:30
|
|
|
{{end}}
|
|
|
|
{{if not .IsDraft}}
|
2023-05-10 09:13:55 +05:30
|
|
|
| <span class="ahead"><a href="{{$.RepoLink}}/compare/{{.TagName | PathEscapeSegments}}...{{.TargetBehind | PathEscapeSegments}}">{{$.locale.Tr "repo.release.ahead.commits" .NumCommitsBehind | Str2html}}</a> {{$.locale.Tr "repo.release.ahead.target" .TargetBehind}}</span>
|
2020-11-03 04:40:22 +05:30
|
|
|
{{end}}
|
2015-12-08 04:00:52 +05:30
|
|
|
</p>
|
2023-03-27 19:11:33 +05:30
|
|
|
{{end}}
|
2021-05-07 14:13:41 +05:30
|
|
|
<div class="markup desc">
|
2015-12-08 04:00:52 +05:30
|
|
|
{{Str2html .Note}}
|
|
|
|
</div>
|
2023-02-13 23:29:59 +05:30
|
|
|
<details class="download gt-border-secondary-top gt-mt-4 gt-pt-4" {{if eq $idx 0}}open{{end}}>
|
|
|
|
<summary class="gt-mb-4">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{$.locale.Tr "repo.release.downloads"}}
|
2021-05-23 06:15:39 +05:30
|
|
|
</summary>
|
|
|
|
<ul class="list">
|
2022-07-31 22:27:02 +05:30
|
|
|
{{if and (not $.DisableDownloadSourceArchives) (not .IsDraft) ($.Permission.CanRead $.UnitTypeCode)}}
|
2021-05-23 06:15:39 +05:30
|
|
|
<li>
|
2023-02-13 23:29:59 +05:30
|
|
|
<a class="archive-link" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{$.locale.Tr "repo.release.source_code"}} (ZIP)</strong></a>
|
2021-05-23 06:15:39 +05:30
|
|
|
</li>
|
|
|
|
<li>
|
2023-02-13 23:29:59 +05:30
|
|
|
<a class="archive-link" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{$.locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a>
|
2021-05-23 06:15:39 +05:30
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
{{if .Attachments}}
|
|
|
|
{{range .Attachments}}
|
2020-11-03 04:40:22 +05:30
|
|
|
<li>
|
2023-08-31 07:59:59 +05:30
|
|
|
<span class="gt-float-right">
|
2021-05-23 06:15:39 +05:30
|
|
|
<span class="ui text grey">{{.Size | FileSize}}</span>
|
2023-04-17 09:07:23 +05:30
|
|
|
<span data-tooltip-content="{{$.locale.Tr "repo.release.download_count" ($.locale.PrettyNumber .DownloadCount)}}">
|
2021-05-23 06:15:39 +05:30
|
|
|
{{svg "octicon-info"}}
|
2023-04-17 09:07:23 +05:30
|
|
|
</span>
|
2021-05-23 06:15:39 +05:30
|
|
|
</span>
|
|
|
|
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
|
2023-02-13 23:29:59 +05:30
|
|
|
<strong>{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}</strong>
|
2021-05-23 06:15:39 +05:30
|
|
|
</a>
|
|
|
|
</li>
|
2020-11-03 04:40:22 +05:30
|
|
|
{{end}}
|
2021-05-23 06:15:39 +05:30
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</details>
|
2015-12-08 04:00:52 +05:30
|
|
|
<span class="dot"> </span>
|
|
|
|
</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"}}
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.release.delete_tag"}}
|
2020-11-03 04:40:22 +05:30
|
|
|
</div>
|
|
|
|
<div class="content">
|
2022-06-28 02:28:46 +05:30
|
|
|
<p>{{.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" .}}
|