diff options
author | Nick Thomas <nick@gitlab.com> | 2019-04-11 15:33:27 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-04-16 15:16:23 +0100 |
commit | 4d52131dcf1a50142d4c1df557bd9e02b2cb2485 (patch) | |
tree | bcf08d99ea34e250dd8eb49bab1b98ca803d1718 /app/views/projects/buttons/_download.html.haml | |
parent | 670b2c1af55ab5e993f3a3b05a1078e394f9ceda (diff) | |
download | gitlab-ce-4d52131dcf1a50142d4c1df557bd9e02b2cb2485.tar.gz |
Add a feature flag for subdirectory archives
Diffstat (limited to 'app/views/projects/buttons/_download.html.haml')
-rw-r--r-- | app/views/projects/buttons/_download.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml index acd63de2277..df1cedba0e4 100644 --- a/app/views/projects/buttons/_download.html.haml +++ b/app/views/projects/buttons/_download.html.haml @@ -11,7 +11,7 @@ %li.dropdown-bold-header= _('Download source code') %li.dropdown-menu-content = render 'projects/buttons/download_links', project: project, ref: ref, archive_prefix: archive_prefix, path: nil - - if directory? + - if directory? && Feature.enabled?(:git_archive_path, default_enabled: true) %li.separator %li.dropdown-bold-header= _('Download this directory') %li.dropdown-menu-content |