File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 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)}}
You can’t perform that action at this time.
0 commit comments