diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-08-26 21:07:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 15:07:06 +0200 |
commit | b0c62846f10dfe91481371d3d7e1860d292d1058 (patch) | |
tree | fb6e61d9a6b9d53312fc9bfae2a1fb68c963fb70 /templates | |
parent | 6c4688e1b1ddb68de192af7f83b06de27baae85e (diff) | |
download | gitea-b0c62846f10dfe91481371d3d7e1860d292d1058.tar.gz gitea-b0c62846f10dfe91481371d3d7e1860d292d1058.zip |
Fix download archiver of a commit (#20962)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/home.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 7b74c1cc76..fd1b60bef8 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -121,9 +121,9 @@ {{svg "octicon-download"}} <div class="menu"> {{if not $.DisableDownloadSourceArchives}} - <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.BranchName}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-3"}}{{.locale.Tr "repo.download_zip"}}</a> - <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.BranchName}}.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 $.BranchName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "mr-3"}}{{.locale.Tr "repo.download_bundle"}}</a> + <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "mr-3"}}{{.locale.Tr "repo.download_zip"}}</a> + <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> </div> |