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">
|
2024-02-19 05:27:05 -05:00
|
|
|
{{range $idx, $info := .Releases}}
|
|
|
|
{{$release := $info.Release}}
|
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">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 12:42:49 -04:00
|
|
|
<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 "tw-mr-1"}}{{$release.TagName}}</a>
|
2024-02-19 05:27:05 -05:00
|
|
|
{{if and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode)}}
|
2024-03-28 04:31:07 -04:00
|
|
|
<a class="muted tw-font-mono" href="{{$.RepoLink}}/src/commit/{{$release.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha $release.Sha1}}</a>
|
2024-02-19 05:27:05 -05:00
|
|
|
{{template "repo/branch_dropdown" dict "root" $ "release" $release}}
|
|
|
|
{{end}}
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
|
|
|
<div class="ui twelve wide column detail">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 12:42:49 -04:00
|
|
|
<div class="tw-flex tw-items-center tw-justify-between tw-flex-wrap tw-mb-2">
|
2024-06-10 23:57:27 -04:00
|
|
|
<h4 class="release-list-title tw-break-anywhere">
|
2024-03-04 02:25:07 -05:00
|
|
|
<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>
|
2024-03-24 16:27:48 -04:00
|
|
|
{{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}}
|
2024-02-19 05:27:05 -05:00
|
|
|
{{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 07:07:23 -05:00
|
|
|
{{else if (not $release.IsTag)}}
|
2024-02-19 05:27:05 -05:00
|
|
|
<span class="ui green label">{{ctx.Locale.Tr "repo.release.stable"}}</span>
|
2019-10-05 07:09:27 -04:00
|
|
|
{{end}}
|
2024-02-19 05:27:05 -05:00
|
|
|
</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-05 23:12:50 -04:00
|
|
|
{{end}}
|
2015-12-07 17:30:52 -05:00
|
|
|
</div>
|
2024-02-19 05:27:05 -05:00
|
|
|
</div>
|
|
|
|
<p class="text grey">
|
|
|
|
<span class="author">
|
|
|
|
{{if $release.OriginalAuthor}}
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 12:42:49 -04:00
|
|
|
{{svg (MigrationIcon $release.Repo.GetOriginalURLHostname) 20 "tw-mr-1"}}{{$release.OriginalAuthor}}
|
2024-02-19 05:27:05 -05:00
|
|
|
{{else if $release.Publisher}}
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 12:42:49 -04:00
|
|
|
{{ctx.AvatarUtils.Avatar $release.Publisher 20 "tw-mr-1"}}
|
2024-02-19 05:27:05 -05:00
|
|
|
<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-10 04:51:19 -04:00
|
|
|
| <span class="ahead"><a href="{{$.RepoLink}}/compare/{{$release.TagName | PathEscapeSegments}}...{{$release.TargetBehind | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind}}</a> {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}}</span>
|
2024-02-19 05:27:05 -05:00
|
|
|
{{end}}
|
|
|
|
</p>
|
2024-04-02 03:51:44 -04:00
|
|
|
{{template "repo/tag/verification_line" (dict "ctxData" $ "release" $release)}}
|
2024-02-19 05:27:05 -05:00
|
|
|
<div class="markup desc">
|
2024-03-01 02:11:51 -05:00
|
|
|
{{$release.RenderedNote}}
|
2024-02-19 05:27:05 -05:00
|
|
|
</div>
|
2024-04-24 11:15:55 -04:00
|
|
|
{{$hasReleaseAttachment := gt (len $release.Attachments) 0}}
|
|
|
|
{{$hasArchiveLinks := and (not $.DisableDownloadSourceArchives) (not $release.IsDraft) (not $release.HideArchiveLinks) ($.Permission.CanRead $.UnitTypeCode)}}
|
|
|
|
{{if or $hasArchiveLinks $hasReleaseAttachment}}
|
|
|
|
<div class="divider"></div>
|
|
|
|
<details class="download" {{if eq $idx 0}}open{{end}}>
|
|
|
|
<summary class="tw-my-4">
|
|
|
|
{{ctx.Locale.Tr "repo.release.downloads"}}
|
|
|
|
</summary>
|
|
|
|
<ul class="list">
|
|
|
|
{{if $hasArchiveLinks}}
|
|
|
|
<li>
|
2023-09-15 12:20:16 -04:00
|
|
|
<a class="archive-link tw-flex-1 flex-text-inline tw-font-bold" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow">
|
|
|
|
{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)
|
|
|
|
</a>
|
2024-04-24 11:15:55 -04:00
|
|
|
<div class="tw-mr-1">
|
|
|
|
<span class="text grey">{{ctx.Locale.TrN .Release.ArchiveDownloadCount.Zip "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .Release.ArchiveDownloadCount.Zip)}}</span>
|
|
|
|
</div>
|
|
|
|
<span data-tooltip-content="{{ctx.Locale.Tr "repo.release.system_generated"}}">
|
|
|
|
{{svg "octicon-info"}}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li class="{{if $hasReleaseAttachment}}start-gap{{end}}">
|
2023-09-15 12:20:16 -04:00
|
|
|
<a class="archive-link tw-flex-1 flex-text-inline tw-font-bold" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">
|
|
|
|
{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)
|
|
|
|
</a>
|
2024-04-24 11:15:55 -04:00
|
|
|
<div class="tw-mr-1">
|
|
|
|
<span class="text grey">{{ctx.Locale.TrN .Release.ArchiveDownloadCount.TarGz "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .Release.ArchiveDownloadCount.TarGz)}}</span>
|
|
|
|
</div>
|
|
|
|
<span data-tooltip-content="{{ctx.Locale.Tr "repo.release.system_generated"}}">
|
|
|
|
{{svg "octicon-info"}}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{{if $hasReleaseAttachment}}<hr>{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{range $release.Attachments}}
|
2023-09-15 12:20:16 -04:00
|
|
|
{{if .ExternalURL}}
|
|
|
|
<li>
|
|
|
|
<a class="tw-flex-1 flex-text-inline tw-font-bold" target="_blank" rel="nofollow" href="{{.DownloadURL}}" download>
|
|
|
|
{{svg "octicon-link-external" 16 "tw-mr-1"}}{{.Name}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<li>
|
|
|
|
<a class="tw-flex-1 flex-text-inline tw-font-bold" target="_blank" rel="nofollow" href="{{.DownloadURL}}" download>
|
|
|
|
{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}
|
|
|
|
</a>
|
|
|
|
<div>
|
|
|
|
<span class="text grey">{{ctx.Locale.TrN .DownloadCount "repo.release.download_count_one" "repo.release.download_count_few" (ctx.Locale.PrettyNumber .DownloadCount)}} · {{.Size | ctx.Locale.TrSize}}</span>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2024-04-24 11:15:55 -04:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
</details>
|
|
|
|
{{end}}
|
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" .}}
|