From 830ab75ce03e187ee7bff024ed8318db47a62f8b Mon Sep 17 00:00:00 2001 From: "fnetX (aka fralix)" Date: Mon, 29 Nov 2021 14:50:43 +0100 Subject: [PATCH] Switch archive URL code back to href attributes (#17796) * Add fallback href link * Switch async archive generation to use href links * Edit all templates to use href instead of data-url for archives * Add consistent rel="nofollow" as per wxiaoguang --- templates/repo/branch/list.tmpl | 8 ++++---- templates/repo/home.tmpl | 6 +++--- templates/repo/release/list.tmpl | 12 ++++++------ web_src/js/features/repo-common.js | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 33a10fa01fe..3580808aac1 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -32,8 +32,8 @@ @@ -116,8 +116,8 @@ {{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 4ba34bc6c5b..5ee6cc2df74 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -113,9 +113,9 @@ diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 95f1bea80cb..1a3ca9423e9 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 @@