From d9bc6881ef695b20857c8c1f03c69a64f3521d5e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 21 Sep 2022 19:51:10 +0800 Subject: [PATCH] Make Clone in VSCode link get updated correctly (#21225) Follow #20557, fix #21224 The `clone_script` will update `.js-clone-url` and related elements, so it should be put after these elements. --- templates/repo/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index fe5af82d1a..e1aa1c4f3b 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -117,7 +117,6 @@ {{if eq $n 0}}
{{template "repo/clone_buttons" .}} - {{template "repo/clone_script" .}} + {{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}}
{{end}} {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}}