diff options
author | Norwin <noerw@users.noreply.github.com> | 2022-09-09 08:38:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 02:38:51 -0400 |
commit | 86ed47e622dabf5c27d60f00883fff46bd349d95 (patch) | |
tree | c33783514f2f2a4db77a58f1d5e1a54fcc5f67f8 /templates/repo/home.tmpl | |
parent | 5f127a729e570fafe9364ef1768c2b79afde7261 (diff) | |
download | gitea-86ed47e622dabf5c27d60f00883fff46bd349d95.tar.gz gitea-86ed47e622dabf5c27d60f00883fff46bd349d95.zip |
Make the vscode clone link respect transport protocol (#20557)
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r-- | templates/repo/home.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 69af36ac68..fe5af82d1a 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -126,7 +126,7 @@ <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-3"}}{{.locale.Tr "repo.download_tar"}}</a> <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "mr-3"}}{{.locale.Tr "repo.download_bundle"}}</a> {{end}} - <a class="item" href="vscode://vscode.git/clone?url={{$.RepoCloneLink.HTTPS}}">{{svg "gitea-vscode" 16 "mr-3"}}{{.locale.Tr "repo.clone_in_vsc"}}</a> + <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> </div> </button> </div> |