Fix disable download button (#20701)
This commit is contained in:
parent
68059ab697
commit
98190d0024
3 changed files with 3 additions and 3 deletions
|
@ -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">
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
<div class="ui action tiny input" id="clone-panel">
|
||||
{{template "repo/clone_buttons" .}}
|
||||
{{template "repo/clone_script" .}}
|
||||
{{if not .DisableDownloadSourceArchives}}
|
||||
{{if not $.DisableDownloadSourceArchives}}
|
||||
<button id="download-btn" class="ui basic small compact jump dropdown icon button tooltip" data-content="{{.locale.Tr "repo.download_archive"}}" data-position="top right">
|
||||
{{svg "octicon-download"}}
|
||||
<div class="menu">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue