File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 117117 {{if eq $n 0}}
118118 <div class="ui action tiny input" id="clone-panel">
119119 {{template "repo/clone_buttons" .}}
120- {{template "repo/clone_script" .}}
121120 <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">
122121 {{svg "octicon-download"}}
123122 <div class="menu">
129128 <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>
130129 </div>
131130 </button>
131+ {{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}}
132132 </div>
133133 {{end}}
134134 {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}}
You can’t perform that action at this time.
0 commit comments