mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 14:03:24 +09:00
Backport #38749 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
@@ -97,8 +97,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{{if and (not $.DisableDownloadSourceArchives) $.RefFullName}}
|
{{if and (not $.DisableDownloadSourceArchives) $.RefFullName}}
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.zip?path={{PathEscapeSegments .TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}}</a>
|
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.zip?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}}</a>
|
||||||
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.tar.gz?path={{PathEscapeSegments .TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}}</a>
|
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.tar.gz?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if and .Repository.CanContentChange (not $isTreePathRoot)}}
|
{{if and .Repository.CanContentChange (not $isTreePathRoot)}}
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user