loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

authored by

wxiaoguang and committed by
GitHub
d9bc6881 39951445

+1 -1
+1 -1
templates/repo/home.tmpl
··· 117 117 {{if eq $n 0}} 118 118 <div class="ui action tiny input" id="clone-panel"> 119 119 {{template "repo/clone_buttons" .}} 120 - {{template "repo/clone_script" .}} 121 120 <button id="download-btn" class="ui basic small compact jump dropdown icon button tooltip" data-content="{{.locale.Tr "repo.download_archive"}}" data-position="top right"> 122 121 {{svg "octicon-download"}} 123 122 <div class="menu"> ··· 129 128 <a class="item js-clone-url-vsc" href="vscode://vscode.git/clone?url={{.CloneButtonOriginLink.HTTPS}}">{{svg "gitea-vscode" 16 "mr-3"}}{{.locale.Tr "repo.clone_in_vsc"}}</a> 130 129 </div> 131 130 </button> 131 + {{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}} 132 132 </div> 133 133 {{end}} 134 134 {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}}