diff options
author | silverwind <me@silverwind.io> | 2021-11-14 22:48:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 16:48:26 -0500 |
commit | cd32b84811851992dd8fbb30ba1ac94cfbbcf317 (patch) | |
tree | ee1aaf112c6860dd3b6b86fda755eb69256cddc8 /templates | |
parent | 42ea0023a30fd6a0e2e2da1e32ece0a484c03a65 (diff) | |
download | gitea-cd32b84811851992dd8fbb30ba1ac94cfbbcf317.tar.gz gitea-cd32b84811851992dd8fbb30ba1ac94cfbbcf317.zip |
Add icon to vscode clone link (#17641)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/home.tmpl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 0c377251fa..eb6ee8c0a2 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -113,12 +113,10 @@ <button id="download-btn" class="ui basic jump dropdown icon button poping up" data-content="{{.i18n.Tr "repo.download_archive"}}" data-variation="tiny inverted" data-position="top right"> {{svg "octicon-download"}} <div class="menu"> - <a class="item" href="vscode://vscode.git/clone?url={{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.CloneLink.HTTPS}}{{end}}"> - {{.i18n.Tr "repo.clone_in_vsc"}} - </a> - <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} {{.i18n.Tr "repo.download_zip"}}</a> - <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} {{.i18n.Tr "repo.download_tar"}}</a> - <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.bundle">{{svg "octicon-package"}} {{.i18n.Tr "repo.download_bundle"}}</a> + <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip" 16 "mr-3"}}{{.i18n.Tr "repo.download_zip"}}</a> + <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip" 16 "mr-3"}}{{.i18n.Tr "repo.download_tar"}}</a> + <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.bundle">{{svg "octicon-package" 16 "mr-3"}}{{.i18n.Tr "repo.download_bundle"}}</a> + <a class="item" href="vscode://vscode.git/clone?url={{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.CloneLink.HTTPS}}{{end}}">{{svg "gitea-vscode" 16 "mr-3"}}{{.i18n.Tr "repo.clone_in_vsc"}}</a> </div> </button> </div> |