forked from p85947160/gitea
Add link to vscode to repo header (#16664)
add link to vscode to repo header Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
162c32af7e
commit
ca13e1d56c
|
@ -768,6 +768,9 @@ fork_repo = Fork Repository
|
||||||
fork_from = Fork From
|
fork_from = Fork From
|
||||||
fork_visibility_helper = The visibility of a forked repository cannot be changed.
|
fork_visibility_helper = The visibility of a forked repository cannot be changed.
|
||||||
use_template = Use this template
|
use_template = Use this template
|
||||||
|
clone_in_vsc = Clone in VS Code
|
||||||
|
download_zip = Download ZIP
|
||||||
|
download_tar = Download TAR.GZ
|
||||||
generate_repo = Generate Repository
|
generate_repo = Generate Repository
|
||||||
generate_from = Generate From
|
generate_from = Generate From
|
||||||
repo_desc = Description
|
repo_desc = Description
|
||||||
|
|
|
@ -113,8 +113,11 @@
|
||||||
<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">
|
<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"}}
|
{{svg "octicon-download"}}
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip">{{svg "octicon-file-zip"}} ZIP</a>
|
<a class="item" href="vscode://vscode.git/clone?url={{if $.PageIsWiki}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.CloneLink.HTTPS}}{{end}}">
|
||||||
<a class="item archive-link" data-url="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz">{{svg "octicon-file-zip"}} TAR.GZ</a>
|
{{.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>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue