diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-08-08 21:42:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 15:42:36 +0200 |
commit | 98190d0024b32c946454792c8094435e96c08d70 (patch) | |
tree | fbf070746c608d7109664e5fd2842a500a31ee5f /templates/repo/branch | |
parent | 68059ab69752ad0944c0d4d2d7904ea21e24f45c (diff) | |
download | gitea-98190d0024b32c946454792c8094435e96c08d70.tar.gz gitea-98190d0024b32c946454792c8094435e96c08d70.zip |
Fix disable download button (#20701)
Diffstat (limited to 'templates/repo/branch')
-rw-r--r-- | templates/repo/branch/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 4a85692a83..09799fbece 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -112,7 +112,7 @@ {{svg "octicon-git-branch"}} </div> {{end}} - {{if (not .IsDeleted)}} + {{if and (not .IsDeleted) (not $.DisableDownloadSourceArchives)}} <div class="ui basic jump dropdown icon button tooltip" data-content="{{$.locale.Tr "repo.branch.download" (.Name)}}" data-position="top right"> {{svg "octicon-download"}} <div class="menu"> |