@ -116,19 +116,19 @@
<!-- Only show clone panel in repository home page -->
{{ if eq $ n 0 }}
<div class="ui action tiny input" id="clone-panel">
{{ template "repo/clone_buttons" . }}
{{ template "repo/clone_script" . }}
<button id="download-btn" class="ui basic small compact jump dropdown icon button tooltip" data-content="{{ .i18n .Tr "repo.download_archive" }} " data-position="top right">
{{ svg "octicon-download" }}
<div class="menu">
{{ if not $ .DisableDownloadSourceArchives }}
<a class="item archive-link" href="{{ $ .RepoLink }} /archive/ {{ PathEscapeSegments $ .RefName }} . zip " rel="nofollow">{{ svg "octicon-file-zip" 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_ zip "}} </a>
<a class="item archive-link" href="{{ $ .RepoLink }} /archive/ {{ PathEscapeSegments $ .RefName }} . tar.gz " rel="nofollow">{{ svg "octicon- file-zi p" 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_ tar "}} </a>
<a class="item archive-link" href=" {{ $ .R epoLink}} /archive/ {{ PathEscapeSegments $ .RefName }} .bu ndle" rel="nofollow">{{ svg "octicon-package" 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_bundle" }} </a>
{{ end}}
< a class="item js-clone-url-vsc" href="vscode: //vsco de.g it/clone?url={{ .CloneButtonOriginLink .HTTPS }} "> {{ s vg "gitea-vscode" 1 6 "mr-3" }} {{ .i18n .Tr "repo.clone_in_vsc" }} </a >
</ div >
</button>
{{ template "repo/clone_buttons" . }}
<button id="download-btn" class="ui basic small compact jump dropdown icon button tooltip" data-content="{{ .i18n .Tr "repo.download_archive" }} " data-position="top right">
{{ svg "octicon-download" }}
<div class="menu">
{{ if not $ .DisableDownloadSourceArchives }}
<a class="item archive-link" href="{{ $ .RepoLink }} /archive/ {{ PathEscapeSegments $ .RefName }} .zip" rel="nofollow"> {{ svg "octicon-file-zip" 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_zip" }} </a>
<a class="item archive-link" href="{{ $ .RepoLink }} /archive/ {{ PathEscapeSegments $ .RefName }} . tar.g z" rel="nofollow">{{ svg "octicon-file-zip" 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_ tar "}} </a>
<a class="item archive-link" href="{{ $ .RepoLink }} /archive/ {{ PathEscapeSegments $ .RefName }} . bundle " rel="nofollow">{{ svg "octicon- package " 1 6 "mr-3" }} {{ .i18n .Tr "repo.download_ bundle "}} </a>
{{ end}}
<a class="item js-clone-url-vsc" href="vscode://vscode.git/clone?url= {{ .Clon eButtonOrigi nLink.HTTPS }} "> {{ svg "gitea-vsco de" 1 6 "mr-3" }} {{ .i18n .Tr "repo.clone_in_vsc" }} </a>
< /div>
</ button >
{{ template "repo/clone_script" . }} {{ / * the script will update ` .js-clone-url ` and related elements * / }}
</div>
{{ end }}
{{ if and ( ne $ n 0 ) ( not .IsViewFile ) ( not .IsBlame ) }}