File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,9 @@ fork_repo = Fork Repository
768
768
fork_from = Fork From
769
769
fork_visibility_helper = The visibility of a forked repository cannot be changed.
770
770
use_template = Use this template
771
+ clone_in_vsc = Clone in VS Code
772
+ download_zip = Download ZIP
773
+ download_tar = Download TAR.GZ
771
774
generate_repo = Generate Repository
772
775
generate_from = Generate From
773
776
repo_desc = Description
Original file line number Diff line number Diff line change 113
113
<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">
114
114
{{svg "octicon-download"}}
115
115
<div class="menu">
116
- <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} ZIP</a>
117
- <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} TAR.GZ</a>
116
+ <a class="item" href="vscode://vscode.git/clone?url={{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.CloneLink.HTTPS}}{{end}}">
117
+ {{.i18n.Tr "repo.clone_in_vsc"}}
118
+ </a>
119
+ <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} {{.i18n.Tr "repo.download_zip"}}</a>
120
+ <a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} {{.i18n.Tr "repo.download_tar"}}</a>
118
121
</div>
119
122
</button>
120
123
</div>
You can’t perform that action at this time.
0 commit comments