From 90dadd2b37200af4b5176a026d223b2ecfe4369b Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 10 Feb 2022 21:13:53 +0000 Subject: [PATCH 1/3] Prevent double encoding of branch names in delete branch There is a double encoding issue in branch template whereby the branch name ends up double encoded. Fix #18709 Signed-off-by: Andrew Thornton --- templates/repo/branch/list.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index ea259949b4ee1..6c34ba4c19398 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -121,9 +121,9 @@ {{end}} {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}} - {{svg "octicon-reply"}} + {{svg "octicon-reply"}} {{else}} - + {{svg "octicon-trash"}} {{end}} From 5f07ce387ac235decd30263d7658449790ea3af7 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 10 Feb 2022 21:18:51 +0000 Subject: [PATCH 2/3] and tag name Signed-off-by: Andrew Thornton --- templates/repo/release/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 26d78df3cce05..956c60ad78c63 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -40,7 +40,7 @@ {{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"}} + {{svg "octicon-tag" 16 "mr-2"}}{{$.i18n.Tr "repo.release.new_release"}} {{end}} {{if (and ($.Permission.CanWrite $.UnitTypeCode) $release.IsTag)}} From 2e6de0c9ebd5bc8ff366beccc53ef0c9d53106fd Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 10 Feb 2022 21:51:14 +0000 Subject: [PATCH 3/3] And fix #18704 Signed-off-by: Andrew Thornton --- templates/mail/issue/assigned.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl index e1156c5335836..ffb15ef677714 100644 --- a/templates/mail/issue/assigned.tmpl +++ b/templates/mail/issue/assigned.tmpl @@ -9,7 +9,7 @@ {{$repo_url := printf "%s" (Escape .Issue.Repo.HTMLURL) (Escape .Issue.Repo.FullName)}} -{{$link := printf "#%d" (Escape .Link) (Escape .Issue.Index)}} +{{$link := printf "#%d" (Escape .Link) .Issue.Index}}

{{if .IsPull}}