From e2b5e0374545acac5c0bf3cb00a3e04c727f779c Mon Sep 17 00:00:00 2001 From: fnetx Date: Wed, 24 Nov 2021 11:42:45 +0100 Subject: [PATCH 1/4] Add fallback href link --- templates/repo/release/list.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 95f1bea80cb44..7091d90fbb64b 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -37,8 +37,8 @@
{{if $.Permission.CanRead $.UnitTypeCode}} {{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}} - {{svg "octicon-file-zip" 16 "mr-2"}}ZIP - {{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ + {{svg "octicon-file-zip" 16 "mr-2"}}ZIP + {{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ {{if (and $.CanCreateRelease $release.IsTag)}} {{svg "octicon-tag" 16 "mr-2"}}{{$.i18n.Tr "repo.release.new_release"}} {{end}} @@ -104,8 +104,8 @@ {{else}} From 5dc2f5fb73730848713fa970cbcaa61487b21b4f Mon Sep 17 00:00:00 2001 From: fnetx Date: Wed, 24 Nov 2021 12:17:10 +0100 Subject: [PATCH 2/4] Switch async archive generation to use href links --- templates/repo/release/list.tmpl | 12 ++++++------ web_src/js/features/repo-common.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 7091d90fbb64b..58cbc4a12588e 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -37,8 +37,8 @@
{{if $.Permission.CanRead $.UnitTypeCode}} {{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}} - {{svg "octicon-file-zip" 16 "mr-2"}}ZIP - {{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ + {{svg "octicon-file-zip" 16 "mr-2"}}ZIP + {{svg "octicon-file-zip" 16 "mr-2"}}TAR.GZ {{if (and $.CanCreateRelease $release.IsTag)}} {{svg "octicon-tag" 16 "mr-2"}}{{$.i18n.Tr "repo.release.new_release"}} {{end}} @@ -104,8 +104,8 @@ {{else}} @@ -148,10 +148,10 @@
{{else}} @@ -151,7 +151,7 @@ {{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (ZIP)
  • - {{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ) + {{svg "octicon-file-zip" 16 "mr-2"}}{{$.i18n.Tr "repo.release.source_code"}} (TAR.GZ)
  • {{end}} {{if .Attachments}}